Documentation ¶
Index ¶
- func CheckSignature(r *http.Request) error
- func FetchActivityPubURL(identifier string) (string, error)
- func FetchFollowing(url string) ([]string, error)
- func GeneratePrivateKey(seed [4]byte) (*rsa.PrivateKey, error)
- func HandleWebfingerRequest(r *http.Request) (string, error)
- func ParsePrivateKeyFromPEM(pemString string) (*rsa.PrivateKey, error)
- func ParsePublicKeyFromPEM(pemString string) (*rsa.PublicKey, error)
- func PublicKeyToPEM(pk *rsa.PublicKey) (string, error)
- func SendSigned(privateKey *rsa.PrivateKey, publicKeyId string, target string, ...) (*http.Response, error)
- type Accept
- type Actor
- type ActorImage
- type Base
- type Create
- type DummyBaseContext
- type Follow
- type Note
- type OrderedCollection
- type OrderedCollectionPage
- type PublicKey
- type WebfingerLink
- type WebfingerResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckSignature ¶ added in v1.1.0
func FetchActivityPubURL ¶ added in v1.1.2
func FetchFollowing ¶ added in v1.2.0
func GeneratePrivateKey ¶ added in v1.2.0
func GeneratePrivateKey(seed [4]byte) (*rsa.PrivateKey, error)
func HandleWebfingerRequest ¶ added in v1.1.1
func ParsePrivateKeyFromPEM ¶ added in v1.1.0
func ParsePrivateKeyFromPEM(pemString string) (*rsa.PrivateKey, error)
func ParsePublicKeyFromPEM ¶ added in v1.1.0
func SendSigned ¶ added in v1.1.0
Types ¶
type Actor ¶
type Actor struct { Base Name string `json:"name"` PreferredUsername string `json:"preferredUsername"` ManuallyApprovesFollowers bool `json:"manuallyApprovesFollowers"` Image ActorImage `json:"image,omitempty"` Icon ActorImage `json:"icon,omitempty"` Summary string `json:"summary,omitempty"` URL string `json:"url"` Inbox string `json:"inbox"` Outbox string `json:"outbox"` Followers string `json:"followers"` Following string `json:"following"` Published time.Time `json:"published"` PublicKey PublicKey `json:"publicKey"` }
func FetchActor ¶ added in v1.1.0
func FetchActorFromIdentifier ¶ added in v1.2.0
type ActorImage ¶
type Base ¶
type Base struct { Context DummyBaseContext `json:"@context"` Id string `json:"id"` Type string `json:"type"` }
type DummyBaseContext ¶ added in v1.2.0
type DummyBaseContext struct{}
func (DummyBaseContext) MarshalJSON ¶ added in v1.2.0
func (c DummyBaseContext) MarshalJSON() ([]byte, error)
func (*DummyBaseContext) UnmarshalJSON ¶ added in v1.2.0
func (c *DummyBaseContext) UnmarshalJSON([]byte) error
type Note ¶
type Note struct { Base Published time.Time `json:"published"` AttributedTo string `json:"attributedTo"` InReplyTo string `json:"InReplyToAtomUri"` Content string `json:"content"` To []string `json:"to"` CC []string `json:"cc"` }
func FetchNotes ¶ added in v1.2.0
type OrderedCollection ¶
type OrderedCollection struct { Base TotalItems int `json:"totalItems"` First json.RawMessage `json:"first"` }
type OrderedCollectionPage ¶
type WebfingerLink ¶ added in v1.1.1
type WebfingerResponse ¶ added in v1.1.1
type WebfingerResponse struct { Subject string `json:"subject"` Links []WebfingerLink `json:"links"` }
Click to show internal directories.
Click to hide internal directories.