Versions in this module Expand all Collapse all v1 v1.0.0 Sep 1, 2024 Changes in this version + func Fetch(requestUrl string, variable interface{}, headers map[string]string) error + type Account struct + Acct string + Avatar string + AvatarStatic string + Bot bool + CreatedAt time.Time + Discoverable bool + DisplayName string + FollowersCount int + FollowingCount int + Group bool + Header string + HeaderStatic string + Id string + LastStatusAt string + Locked bool + Note string + StatusesCount int + URI string + URL string + Username string + func FetchAccount(baseURL string, handle string) (Account, error) + type Application struct + Name string + Website string + type Client struct + func New(userURL string, filters PostsFilter, opts ClientOptions) (Client, error) + func (c Client) Account() Account + func (c Client) Posts() []*Post + type ClientOptions struct + Threaded bool + Visibility string + type MediaAttachment struct + Description string + Id string + Path string + Type string + URL string + type Post struct + Account Account + Application Application + Bookmarked bool + Content string + CreatedAt time.Time + FavoritesCount int + Favourited bool + Id string + InReplyToAccountId string + InReplyToId string + Language string + MediaAttachments []MediaAttachment + Muted bool + Pinned bool + Reblogged bool + ReblogsCount int + RepliesCount int + Sensitive bool + SpoilerText string + Tags []Tag + URI string + URL string + Visibility string + func FetchPosts(baseURL string, accountId string, filters PostsFilter) ([]Post, error) + func (p Post) AllMedia() []MediaAttachment + func (p Post) AllTags() []Tag + func (p Post) Descendants() []*Post + func (p Post) ShouldSkip(visibility string) bool + type PostsFilter struct + ExcludeReblogs bool + ExcludeReplies bool + Limit int + MaxId string + MinId string + OnlyMedia bool + Pinned bool + SinceId string + Tagged string + type StatusContext struct + Ancestors []Post + Descendants []Post + func FetchStatusContext(baseURL, postId string) (StatusContext, error) + type Tag struct + Name string + URL string