Documentation ¶
Index ¶
- func Hash(signedString string) []byte
- func Sign(privKey string, keyId string, target string, headers []Pair) (string, error)
- func Verify(pubKey string, digest string, signature string) (bool, error)
- type Actor
- type Endpoints
- type Icon
- type Link
- type Nodeinfo
- type Outbox
- type Pair
- type PublicKey
- type Services
- type Software
- type Usage
- type Users
- type Webfinger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Actor ¶
type Actor struct { Context []string `json:"@context,omitempty"` Id string `json:"id,omitempty"` Type string `json:"type,omitempty"` Following string `json:"following,omitempty"` Followers string `json:"followers,omitempty"` Inbox string `json:"inbox,omitempty"` Outbox string `json:"outbox,omitempty"` PreferredUsername string `json:"preferredUsername,omitempty"` Name string `json:"name,omitempty"` Summary string `json:"summary,omitempty"` Icon Icon `json:"icon"` Url string `json:"url,omitempty"` PublicKey PublicKey `json:"publicKey,omitempty"` Endpoints Endpoints `json:"endpoints"` }
func ParseActor ¶
type Icon ¶
type Icon struct { Type string `json:"type"` MediaType string `json:"mediaType"` Url string `json:"url"` }
func ParseActorIcon ¶
type Nodeinfo ¶
type Nodeinfo struct { Version string `json:"version,omitempty"` Software Software `json:"software,omitempty"` Protocols []string `json:"protocols,omitempty"` Services Services `json:"services,omitempty"` Usage Usage `json:"usage,omitempty"` OpenRegistrations bool `json:"openRegistrations,omitempty"` Metadata struct{} `json:"metadata,omitempty"` }
type PublicKey ¶
type PublicKey struct { Id string `json:"id,omitempty"` Owner string `json:"owner,omitempty"` PublicKeyPem string `json:"publicKeyPem,omitempty"` }
func ParseActorPublicKey ¶
Click to show internal directories.
Click to hide internal directories.