Documentation ¶
Index ¶
- type Mastodon
- func (m *Mastodon) Authenticate(w io.Writer) (string, error)
- func (m *Mastodon) Block(id string) (*sharedapi.Relationship, error)
- func (m *Mastodon) Bookmark(id string) (*sharedapi.Post, error)
- func (m *Mastodon) CreatePost(opts *sharedapi.CreatePostOpts) (*sharedapi.Post, error)
- func (m *Mastodon) CreatePostURL(post *sharedapi.Post) (string, error)
- func (m *Mastodon) DeletePost(id string) error
- func (m *Mastodon) Follow(id string) (*sharedapi.Relationship, error)
- func (m *Mastodon) GetAccount(id string) (*sharedapi.Account, error)
- func (m *Mastodon) GetAnnouncements() ([]*sharedapi.Announcement, error)
- func (m *Mastodon) GetGlobalTimeline(sinceID string, limit int) ([]*sharedapi.Post, error)
- func (m *Mastodon) GetHomeTimeline(sinceID string, limit int) ([]*sharedapi.Post, error)
- func (m *Mastodon) GetListTimeline(listID, sinceID string, limit int) ([]*sharedapi.Post, error)
- func (m *Mastodon) GetLocalTimeline(sinceID string, limit int) ([]*sharedapi.Post, error)
- func (m *Mastodon) GetLoginAccount() (*sharedapi.Account, error)
- func (m *Mastodon) GetPosts(id string, limit int) ([]*sharedapi.Post, error)
- func (m *Mastodon) GetRelationships(ids []string) ([]*sharedapi.Relationship, error)
- func (m *Mastodon) GetVisibilityList() []string
- func (m *Mastodon) IsStreamingSupported() bool
- func (m *Mastodon) Mute(id string) (*sharedapi.Relationship, error)
- func (m *Mastodon) QuotePost(id string, opts *sharedapi.CreatePostOpts) (*sharedapi.Post, error)
- func (m *Mastodon) Reaction(id, reaction string) (*sharedapi.Post, error)
- func (m *Mastodon) RegisterNewApplication() (string, string, error)
- func (m *Mastodon) ReplyPost(replyToId string, opts *sharedapi.CreatePostOpts) (*sharedapi.Post, error)
- func (m *Mastodon) Repost(id string) (*sharedapi.Post, error)
- func (m *Mastodon) SearchAccounts(query string, limit int) ([]*sharedapi.Account, error)
- func (m *Mastodon) StreamingGlobalTimeline(opts *sharedapi.StreamingTimelineOpts) error
- func (m *Mastodon) StreamingHomeTimeline(opts *sharedapi.StreamingTimelineOpts) error
- func (m *Mastodon) StreamingListTimeline(opts *sharedapi.StreamingListTimelineOpts) error
- func (m *Mastodon) StreamingLocalTimeline(opts *sharedapi.StreamingTimelineOpts) error
- func (m *Mastodon) Unblock(id string) (*sharedapi.Relationship, error)
- func (m *Mastodon) Unbookmark(id string) (*sharedapi.Post, error)
- func (m *Mastodon) Unfollow(id string) (*sharedapi.Relationship, error)
- func (m *Mastodon) Unmute(id string) (*sharedapi.Relationship, error)
- func (m *Mastodon) Unreaction(id string) (*sharedapi.Post, error)
- func (m *Mastodon) Unrepost(id string) (*sharedapi.Post, error)
- func (m *Mastodon) UploadMedia(filename string, src io.Reader) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mastodon ¶
type Mastodon struct {
// contains filtered or unexported fields
}
func New ¶
func New(c *sharedapi.ClientCredential, u *sharedapi.UserCredential) (*Mastodon, error)
func (*Mastodon) CreatePost ¶
func (*Mastodon) CreatePostURL ¶
func (*Mastodon) DeletePost ¶
func (*Mastodon) GetAnnouncements ¶
func (m *Mastodon) GetAnnouncements() ([]*sharedapi.Announcement, error)
func (*Mastodon) GetGlobalTimeline ¶
func (*Mastodon) GetHomeTimeline ¶
func (*Mastodon) GetListTimeline ¶
func (*Mastodon) GetLocalTimeline ¶
func (*Mastodon) GetRelationships ¶
func (m *Mastodon) GetRelationships(ids []string) ([]*sharedapi.Relationship, error)
func (*Mastodon) GetVisibilityList ¶
func (*Mastodon) IsStreamingSupported ¶
func (*Mastodon) RegisterNewApplication ¶
func (*Mastodon) SearchAccounts ¶
func (*Mastodon) StreamingGlobalTimeline ¶
func (m *Mastodon) StreamingGlobalTimeline(opts *sharedapi.StreamingTimelineOpts) error
func (*Mastodon) StreamingHomeTimeline ¶
func (m *Mastodon) StreamingHomeTimeline(opts *sharedapi.StreamingTimelineOpts) error
func (*Mastodon) StreamingListTimeline ¶
func (m *Mastodon) StreamingListTimeline(opts *sharedapi.StreamingListTimelineOpts) error
func (*Mastodon) StreamingLocalTimeline ¶
func (m *Mastodon) StreamingLocalTimeline(opts *sharedapi.StreamingTimelineOpts) error
Click to show internal directories.
Click to hide internal directories.