Documentation
¶
Index ¶
- type Activity
- func (a *Activity) GetActor() *Author
- func (a *Activity) GetInReplyTo() *InReplyTo
- func (a *Activity) GetObject() ObjectLike
- func (a *Activity) GetObjectType() string
- func (a *Activity) GetSummary() string
- func (a *Activity) GetTime() time.Time
- func (a *Activity) GetTitle() string
- func (a *Activity) GetVerb() string
- func (a *Activity) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- type ActivityLike
- type Author
- type AuthorAddress
- type AuthorURL
- type Comment
- type Content
- type Entry
- func (a *Entry) GetActor() *Author
- func (e *Entry) GetContent() string
- func (a *Entry) GetID() string
- func (e *Entry) GetInReplyTo() *InReplyTo
- func (a *Entry) GetName() string
- func (a *Entry) GetObject() ObjectLike
- func (a *Entry) GetObjectType() string
- func (a *Entry) GetPermalink() string
- func (a *Entry) GetRepresentativeImage() string
- func (a *Entry) GetSummary() string
- func (a *Entry) GetTime() time.Time
- func (a *Entry) GetTitle() string
- func (a *Entry) GetVerb() string
- func (a *Entry) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- type Feed
- type GenericObject
- type HasContent
- type HasInReplyTo
- type InReplyTo
- type Note
- type NoteLike
- type ObjectLike
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Activity ¶
type Activity struct {
Object ObjectLike `xml:"http://activitystrea.ms/spec/1.0/ object" json:"object,omitempty"`
// contains filtered or unexported fields
}
func (*Activity) GetInReplyTo ¶
func (*Activity) GetObject ¶
func (a *Activity) GetObject() ObjectLike
func (*Activity) GetObjectType ¶
func (*Activity) GetSummary ¶
func (*Activity) UnmarshalXML ¶
type ActivityLike ¶
type ActivityLike interface {
ObjectLike
GetActor() *Author
GetObject() ObjectLike
GetVerb() string
GetTime() time.Time
GetTitle() string
}
type Author ¶
type Author struct {
commonxml.HasLinks
XMLName xml.Name `json:"-"`
ID string `xml:"http://www.w3.org/2005/Atom id,omitempty" json:"id,omitempty"`
Name string `xml:"http://www.w3.org/2005/Atom name" json:"name,omitempty"`
URI string `xml:"http://www.w3.org/2005/Atom uri,omitempty" json:"uri,omitempty"`
Email string `xml:"http://www.w3.org/2005/Atom email,omitempty" json:"email,omitempty"`
Summary string `xml:"http://www.w3.org/2005/Atom summary,omitempty" json:"summary,omitempty"`
ObjectType string `xml:"http://activitystrea.ms/spec/1.0/ object-type" json:"objectType,omitempty"`
PreferredUsername string `xml:"http://portablecontacts.net/spec/1.0 preferredUsername" json:"preferredUsername,omitempty"`
DisplayName string `xml:"http://portablecontacts.net/spec/1.0 displayName" json:"displayName,omitempty"`
Note string `xml:"http://portablecontacts.net/spec/1.0 note" json:"note,omitempty"`
URLs []AuthorURL `xml:"http://portablecontacts.net/spec/1.0 urls" json:"urls,omitempty"`
Address *AuthorAddress `xml:"http://portablecontacts.net/spec/1.0 address" json:"address,omitempty"`
Scope string `xml:"http://mastodon.social/schema/1.0 scope" json:"scope,omitempty"`
}
func (*Author) GetBestAvatar ¶
func (*Author) GetObjectType ¶
func (*Author) GetPermalink ¶
func (*Author) GetRepresentativeImage ¶
func (*Author) GetSummary ¶
type AuthorAddress ¶
type AuthorAddress struct {
Formatted string `xml:"http://portablecontacts.net/spec/1.0 formatted" json:"type"`
}
type Comment ¶
type Comment struct {
GenericObject
Content []Content `xml:"http://www.w3.org/2005/Atom content,omitempty" json:"content,omitempty"`
}
func (*Comment) GetContent ¶
type Entry ¶
type Entry struct {
Object ObjectLike `json:"object"`
// contains filtered or unexported fields
}
func (*Entry) GetContent ¶
func (*Entry) GetInReplyTo ¶
func (*Entry) GetObject ¶
func (a *Entry) GetObject() ObjectLike
func (*Entry) GetObjectType ¶
func (*Entry) GetPermalink ¶
func (*Entry) GetRepresentativeImage ¶
func (*Entry) GetSummary ¶
func (*Entry) UnmarshalXML ¶
type Feed ¶
type Feed struct {
// contains filtered or unexported fields
}
func (*Feed) GetActivities ¶
func (f *Feed) GetActivities() []ActivityLike
func (*Feed) UnmarshalXML ¶
type GenericObject ¶
type GenericObject struct {
commonxml.HasLinks
ID string `xml:"http://www.w3.org/2005/Atom id,omitempty" json:"id,omitempty"`
Title string `xml:"http://www.w3.org/2005/Atom title,omitempty" json:"title,omitempty"`
Summary string `xml:"http://www.w3.org/2005/Atom summary,omitempty" json:"summary,omitempty"`
ObjectType string `xml:"http://activitystrea.ms/spec/1.0/ object-type" json:"objectType,omitempty"`
}
func (*GenericObject) GetID ¶
func (o *GenericObject) GetID() string
func (*GenericObject) GetName ¶
func (o *GenericObject) GetName() string
func (*GenericObject) GetObjectType ¶
func (o *GenericObject) GetObjectType() string
func (*GenericObject) GetPermalink ¶
func (o *GenericObject) GetPermalink() string
func (*GenericObject) GetRepresentativeImage ¶
func (o *GenericObject) GetRepresentativeImage() string
func (*GenericObject) GetSummary ¶
func (o *GenericObject) GetSummary() string
type HasContent ¶
type HasContent interface {
GetContent() string
}
type HasInReplyTo ¶
type HasInReplyTo interface {
GetInReplyTo() *InReplyTo
}
type Note ¶
type Note struct {
GenericObject
Content []Content `xml:"http://www.w3.org/2005/Atom content,omitempty" json:"content,omitempty"`
}
func (*Note) GetContent ¶
type NoteLike ¶
type NoteLike interface {
ObjectLike
GetContent() string
}
Click to show internal directories.
Click to hide internal directories.