mastodon

package
v0.0.0-...-fe515d1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

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 (*Mastodon) Authenticate

func (m *Mastodon) Authenticate(w io.Writer) (string, error)

func (*Mastodon) Block

func (m *Mastodon) Block(id string) (*sharedapi.Relationship, error)

func (*Mastodon) Bookmark

func (m *Mastodon) Bookmark(id string) (*sharedapi.Post, error)

func (*Mastodon) CreatePost

func (m *Mastodon) CreatePost(opts *sharedapi.CreatePostOpts) (*sharedapi.Post, error)

func (*Mastodon) CreatePostURL

func (m *Mastodon) CreatePostURL(post *sharedapi.Post) (string, error)

func (*Mastodon) DeletePost

func (m *Mastodon) DeletePost(id string) error

func (*Mastodon) Follow

func (m *Mastodon) Follow(id string) (*sharedapi.Relationship, error)

func (*Mastodon) GetAccount

func (m *Mastodon) GetAccount(id string) (*sharedapi.Account, error)

func (*Mastodon) GetAnnouncements

func (m *Mastodon) GetAnnouncements() ([]*sharedapi.Announcement, error)

func (*Mastodon) GetGlobalTimeline

func (m *Mastodon) GetGlobalTimeline(sinceID string, limit int) ([]*sharedapi.Post, error)

func (*Mastodon) GetHomeTimeline

func (m *Mastodon) GetHomeTimeline(sinceID string, limit int) ([]*sharedapi.Post, error)

func (*Mastodon) GetListTimeline

func (m *Mastodon) GetListTimeline(listID, sinceID string, limit int) ([]*sharedapi.Post, error)

func (*Mastodon) GetLocalTimeline

func (m *Mastodon) GetLocalTimeline(sinceID string, limit int) ([]*sharedapi.Post, error)

func (*Mastodon) GetLoginAccount

func (m *Mastodon) GetLoginAccount() (*sharedapi.Account, error)

func (*Mastodon) GetPosts

func (m *Mastodon) GetPosts(id string, limit int) ([]*sharedapi.Post, error)

func (*Mastodon) GetRelationships

func (m *Mastodon) GetRelationships(ids []string) ([]*sharedapi.Relationship, error)

func (*Mastodon) GetVisibilityList

func (m *Mastodon) GetVisibilityList() []string

func (*Mastodon) IsStreamingSupported

func (m *Mastodon) IsStreamingSupported() bool

func (*Mastodon) Mute

func (m *Mastodon) Mute(id string) (*sharedapi.Relationship, error)

func (*Mastodon) QuotePost

func (m *Mastodon) QuotePost(id string, opts *sharedapi.CreatePostOpts) (*sharedapi.Post, error)

func (*Mastodon) Reaction

func (m *Mastodon) Reaction(id, reaction string) (*sharedapi.Post, error)

func (*Mastodon) RegisterNewApplication

func (m *Mastodon) RegisterNewApplication() (string, string, error)

func (*Mastodon) ReplyPost

func (m *Mastodon) ReplyPost(replyToId string, opts *sharedapi.CreatePostOpts) (*sharedapi.Post, error)

func (*Mastodon) Repost

func (m *Mastodon) Repost(id string) (*sharedapi.Post, error)

func (*Mastodon) SearchAccounts

func (m *Mastodon) SearchAccounts(query string, limit int) ([]*sharedapi.Account, error)

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

func (*Mastodon) Unblock

func (m *Mastodon) Unblock(id string) (*sharedapi.Relationship, error)

func (*Mastodon) Unbookmark

func (m *Mastodon) Unbookmark(id string) (*sharedapi.Post, error)

func (*Mastodon) Unfollow

func (m *Mastodon) Unfollow(id string) (*sharedapi.Relationship, error)

func (*Mastodon) Unmute

func (m *Mastodon) Unmute(id string) (*sharedapi.Relationship, error)

func (*Mastodon) Unreaction

func (m *Mastodon) Unreaction(id string) (*sharedapi.Post, error)

func (*Mastodon) Unrepost

func (m *Mastodon) Unrepost(id string) (*sharedapi.Post, error)

func (*Mastodon) UploadMedia

func (m *Mastodon) UploadMedia(filename string, src io.Reader) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL