Versions in this module Expand all Collapse all v0 v0.0.2 Oct 25, 2017 Changes in this version + type ID string + func (id *ID) UnmarshalJSON(data []byte) error v0.0.1 May 9, 2017 Changes in this version + func Base64Encode(file *os.File) (string, error) + func Base64EncodeFileName(filename string) (string, error) + func String(v string) *string + type Account struct + Acct string + Avatar string + AvatarStatic string + CreatedAt time.Time + DisplayName string + FollowersCount int64 + FollowingCount int64 + Header string + HeaderStatic string + ID int64 + Locked bool + Note string + StatusesCount int64 + URL string + Username string + type AppConfig struct + ClientName string + RedirectURIs string + Scopes string + Server string + Website string + type Application struct + ClientID string + ClientSecret string + ID int64 + RedirectURI string + func RegisterApp(ctx context.Context, appConfig *AppConfig) (*Application, error) + type Attachment struct + ID int64 + PreviewURL string + RemoteURL string + TextURL string + Type string + URL string + type Card struct + Description string + Image string + Title string + URL string + type Client struct + func NewClient(config *Config) *Client + func (c *Client) AccountBlock(ctx context.Context, id int64) (*Relationship, error) + func (c *Client) AccountFollow(ctx context.Context, id int64) (*Relationship, error) + func (c *Client) AccountMute(ctx context.Context, id int64) (*Relationship, error) + func (c *Client) AccountUnblock(ctx context.Context, id int64) (*Relationship, error) + func (c *Client) AccountUnfollow(ctx context.Context, id int64) (*Relationship, error) + func (c *Client) AccountUnmute(ctx context.Context, id int64) (*Relationship, error) + func (c *Client) AccountUpdate(ctx context.Context, profile *Profile) (*Account, error) + func (c *Client) AccountsSearch(ctx context.Context, q string, limit int64) ([]*Account, error) + func (c *Client) Authenticate(ctx context.Context, username, password string) error + func (c *Client) ClearNotifications(ctx context.Context) error + func (c *Client) DeleteStatus(ctx context.Context, id int64) error + func (c *Client) Favourite(ctx context.Context, id int64) (*Status, error) + func (c *Client) FollowRemoteUser(ctx context.Context, uri string) (*Account, error) + func (c *Client) FollowRequestAuthorize(ctx context.Context, id int64) error + func (c *Client) FollowRequestReject(ctx context.Context, id int64) error + func (c *Client) GetAccount(ctx context.Context, id int) (*Account, error) + func (c *Client) GetAccountCurrentUser(ctx context.Context) (*Account, error) + func (c *Client) GetAccountFollowers(ctx context.Context, id int64, pg *Pagination) ([]*Account, error) + func (c *Client) GetAccountFollowing(ctx context.Context, id int64, pg *Pagination) ([]*Account, error) + func (c *Client) GetAccountRelationships(ctx context.Context, ids []int64) ([]*Relationship, error) + func (c *Client) GetAccountStatuses(ctx context.Context, id int64, pg *Pagination) ([]*Status, error) + func (c *Client) GetBlocks(ctx context.Context, pg *Pagination) ([]*Account, error) + func (c *Client) GetFavouritedBy(ctx context.Context, id int64, pg *Pagination) ([]*Account, error) + func (c *Client) GetFavourites(ctx context.Context, pg *Pagination) ([]*Status, error) + func (c *Client) GetFollowRequests(ctx context.Context, pg *Pagination) ([]*Account, error) + func (c *Client) GetInstance(ctx context.Context) (*Instance, error) + func (c *Client) GetMutes(ctx context.Context, pg *Pagination) ([]*Account, error) + func (c *Client) GetNotification(ctx context.Context, id int64) (*Notification, error) + func (c *Client) GetNotifications(ctx context.Context, pg *Pagination) ([]*Notification, error) + func (c *Client) GetRebloggedBy(ctx context.Context, id int64, pg *Pagination) ([]*Account, error) + func (c *Client) GetReports(ctx context.Context) ([]*Report, error) + func (c *Client) GetStatus(ctx context.Context, id int64) (*Status, error) + func (c *Client) GetStatusCard(ctx context.Context, id int64) (*Card, error) + func (c *Client) GetStatusContext(ctx context.Context, id int64) (*Context, error) + func (c *Client) GetTimelineHashtag(ctx context.Context, tag string, isLocal bool, pg *Pagination) ([]*Status, error) + func (c *Client) GetTimelineHome(ctx context.Context, pg *Pagination) ([]*Status, error) + func (c *Client) GetTimelineMedia(ctx context.Context, isLocal bool, pg *Pagination) ([]*Status, error) + func (c *Client) GetTimelinePublic(ctx context.Context, isLocal bool, pg *Pagination) ([]*Status, error) + func (c *Client) NewWSClient() *WSClient + func (c *Client) PostStatus(ctx context.Context, toot *Toot) (*Status, error) + func (c *Client) Reblog(ctx context.Context, id int64) (*Status, error) + func (c *Client) Report(ctx context.Context, accountID int64, ids []int64, comment string) (*Report, error) + func (c *Client) Search(ctx context.Context, q string, resolve bool) (*Results, error) + func (c *Client) StreamingHashtag(ctx context.Context, tag string, isLocal bool) (chan Event, error) + func (c *Client) StreamingPublic(ctx context.Context, isLocal bool) (chan Event, error) + func (c *Client) StreamingUser(ctx context.Context) (chan Event, error) + func (c *Client) Unfavourite(ctx context.Context, id int64) (*Status, error) + func (c *Client) Unreblog(ctx context.Context, id int64) (*Status, error) + func (c *Client) UploadMedia(ctx context.Context, file string) (*Attachment, error) + type Config struct + AccessToken string + ClientID string + ClientSecret string + Server string + type Context struct + Ancestors []*Status + Descendants []*Status + type DeleteEvent struct + ID int64 + type ErrorEvent struct + func (e *ErrorEvent) Error() string + type Event interface + type Instance struct + Description string + EMail string + Title string + URI string + type Mention struct + Acct string + ID int64 + URL string + Username string + type Notification struct + Account Account + CreatedAt time.Time + ID int64 + Status *Status + Type string + type NotificationEvent struct + Notification *Notification + type Pagination struct + Limit int64 + MaxID int64 + SinceID int64 + type Profile struct + Avatar string + DisplayName *string + Header string + Note *string + type Relationship struct + Blocking bool + FollowedBy bool + Following bool + ID int64 + Muting bool + Requested bool + type Report struct + ActionTaken bool + ID int64 + type Results struct + Accounts []*Account + Hashtags []string + Statuses []*Status + type Status struct + Account Account + Application Application + Content string + CreatedAt time.Time + Favourited interface{} + FavouritesCount int64 + ID int64 + InReplyToAccountID interface{} + InReplyToID interface{} + MediaAttachments []Attachment + Mentions []Mention + Reblog *Status + Reblogged interface{} + ReblogsCount int64 + Sensitive bool + SpoilerText string + Tags []Tag + URI string + URL string + Visibility string + type Stream struct + Event string + Payload interface{} + type Tag struct + Name string + URL string + type Toot struct + InReplyToID int64 + MediaIDs []int64 + Sensitive bool + SpoilerText string + Status string + Visibility string + type UpdateEvent struct + Status *Status + type WSClient struct + func (c *WSClient) StreamingWSHashtag(ctx context.Context, tag string, isLocal bool) (chan Event, error) + func (c *WSClient) StreamingWSPublic(ctx context.Context, isLocal bool) (chan Event, error) + func (c *WSClient) StreamingWSUser(ctx context.Context) (chan Event, error)