Documentation
¶
Index ¶
- Constants
- type Accept
- type Activity
- type Collection
- type Icon
- type Object
- func NewAccept(act Activity, actorID string, acceptID string) *Object
- func NewCreate(createID string, actor string, to []string, cc []string, obj Object) *Object
- func NewMention(toID string) Object
- func NewNote(noteID string, published string, name string, content string, ...) *Object
- func NewOrderedCollection(id string, totalItems int, first string, last string) *Object
- func NewOrderedCollectionPage(id string, partOf string, next string, prev string, orderdItems interface{}) *Object
- func NewTag(tagType string, name string, href string) Object
- func NewUserResource(ID string, name string, IconURI string, iconMediaType string, ...) *Object
- type OrderedCollectionPage
- type PublicKey
- type ReceivedInbox
- type UserResource
Constants ¶
View Source
const ( CreateType = "Create" NoteType = "Note" OrderedCollectionPageType = "OrderedCollectionPage" )
View Source
const ActivityStreamsContentType = `application/ld+json; profile="https://www.w3.org/ns/activitystreams"`
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
func NewMention ¶
func NewOrderedCollection ¶
func NewUserResource ¶
func (*Object) MarshalJSON ¶
func (*Object) OrderedCollectionPage ¶
func (o *Object) OrderedCollectionPage() (OrderedCollectionPage, bool)
func (*Object) UnmarshalJSON ¶
type OrderedCollectionPage ¶
type OrderedCollectionPage struct { Collection PartOf string `json:"partOf"` Next string `json:"next"` Prev string `json:"prev"` OrderedItems interface{} `json:"orderedItems"` }
type ReceivedInbox ¶
type ReceivedInbox struct { Activity Item json.RawMessage `json:"object"` }
type UserResource ¶
type UserResource struct { PreferredUsername string `json:"preferredUsername"` Inbox string `json:"inbox"` Outbox string `json:"outbox"` Summary string `json:"summary"` Followers string `json:"followers"` Following string `json:"following"` Liked string `json:"liked,omitempty"` PublicKey PublicKey `json:"publicKey"` }
func FetchActorInfo ¶
func FetchActorInfo(actor string) (*UserResource, error)
Click to show internal directories.
Click to hide internal directories.