Add handle_test.

This commit is contained in:
Naoki Kosaka
2018-11-15 19:01:37 +09:00
parent 221e474c5a
commit e8d4239e0a
5 changed files with 276 additions and 57 deletions

View File

@ -7,7 +7,8 @@ type PublicKey struct {
PublicKeyPem string `json:"publicKeyPem"`
}
type endpoints struct {
//Endpoints : Contains SharedInbox address.
type Endpoints struct {
SharedInbox string `json:"sharedInbox"`
}
@ -18,7 +19,7 @@ type Actor struct {
Type string `json:"type"`
PreferredUsername string `json:"preferredUsername"`
Inbox string `json:"inbox"`
Endpoints *endpoints `json:"endpoints"`
Endpoints *Endpoints `json:"endpoints"`
PublicKey PublicKey `json:"publicKey"`
}