Documentation ¶
Index ¶
- func FacetsToHTML(text string, facets []Facet) template.HTML
- type Actor
- type AspectRatio
- type Embed
- type ExternalEmbed
- type Facet
- type FacetFeature
- type FacetIndex
- type Feed
- type FeedItem
- type Image
- type List
- type ListItem
- type MediaEmbed
- type Post
- type Record
- type RecordEmbed
- type RecordEmbedRecord
- type Ref
- type Reply
- type ReplyParent
- type ReplyRoot
- type Thread
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Actor ¶
type Actor struct { DID string `json:"did"` Handle string `json:"handle"` DisplayName string `json:"displayName,omitempty"` Description string `json:"description,omitempty"` Avatar string `json:"avatar,omitempty"` Banner string `json:"banner,omitempty"` FollowsCount int `json:"followsCount,omitempty"` FollowersCount int `json:"followersCount,omitempty"` PostsCount int `json:"postsCount,omitempty"` IndexedAt *time.Time `json:"indexedAt,omitempty"` Labels []interface{} `json:"labels,omitempty"` }
func GetActorProfile ¶
func (Actor) DescriptionHTML ¶
type AspectRatio ¶
type Embed ¶
type Embed struct { Type string `json:"$type"` External *ExternalEmbed `json:"external,omitempty"` Images []*Image `json:"images,omitempty"` Media *MediaEmbed `json:"media,omitempty"` Record *RecordEmbed `json:"record,omitempty"` }
type ExternalEmbed ¶
type Facet ¶
type Facet struct { Type string `json:"$type,omitempty"` Index FacetIndex `json:"index"` Features []FacetFeature `json:"features"` }
func ParseFacets ¶
func ParseMentions ¶
type FacetFeature ¶
type FacetIndex ¶
type Image ¶
type Image struct { Alt string `json:"alt,omitempty"` Image *Image `json:"image,omitempty"` Type string `json:"$type"` Ref *Ref `json:"ref,omitempty"` MimeType string `json:"mimeType,omitempty"` Size int `json:"size,omitempty"` Thumb string `json:"thumb,omitempty"` FullSize string `json:"fullsize,omitempty"` AspectRatio *AspectRatio `json:"aspectRatio,omitempty"` }
type List ¶
type List struct { URI string `json:"uri,omitempty"` CID string `json:"cid,omitempty"` Name string `json:"name,omitempty"` Purpose string `json:"purpose,omitempty"` IndexedAt time.Time `json:"indexedAt,omitempty"` Labels []string `json:"labels,omitempty"` Creator Actor `json:"creator,omitempty"` Description string `json:"description,omitempty"` DescriptionFacets []Facet `json:"descriptionFacets,omitempty"` }
func (List) DescriptionHTML ¶
type MediaEmbed ¶
type Post ¶
type Post struct { URI string `json:"uri"` CID string `json:"cid"` Author *Actor `json:"author"` Record *Record `json:"record,omitempty"` Embed *Embed `json:"embed,omitempty"` ReplyCount int `json:"replyCount"` RepostCount int `json:"repostCount"` LikeCount int `json:"likeCount"` IndexedAt *time.Time `json:"indexedAt,omitempty"` Labels []string `json:"labels,omitempty"` }
type Record ¶
type RecordEmbed ¶
type RecordEmbed struct { RecordEmbedRecord `json:",omitempty"` Type string `json:"$type,omitempty"` Record *RecordEmbedRecord `json:"record,omitempty"` }
type RecordEmbedRecord ¶
type RecordEmbedRecord struct { URI string `json:"uri,omitempty"` CID string `json:"cid,omitempty"` Author *Actor `json:"author,omitempty"` Value *Record `json:"value,omitempty"` Labels []string `json:"labels,omitempty"` IndexedAt *time.Time `json:"indexedAt,omitempty"` Embeds []*Embed `json:"embeds,omitempty"` }
func (RecordEmbedRecord) RKey ¶
func (record RecordEmbedRecord) RKey() string
type Reply ¶
type Reply struct { Root ReplyRoot `json:"root"` Parent ReplyParent `json:"parent"` }
type ReplyParent ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.