Documentation ¶
Index ¶
- func New(v *viper.Viper, cred bridge.Credentials, eventChan chan *bridge.Event, ...) (bridge.Bridger, error)
- type Mastodon
- func (m *Mastodon) AddReaction(msgID, emoji string) error
- func (m *Mastodon) Connected() bool
- func (m *Mastodon) GetChannel(channelID string) (*bridge.ChannelInfo, error)
- func (m *Mastodon) GetChannelID(name, teamID string) string
- func (m *Mastodon) GetChannelName(channelID string) string
- func (m *Mastodon) GetChannelUsers(channelID string) ([]*bridge.UserInfo, error)
- func (m *Mastodon) GetChannels() []*bridge.ChannelInfo
- func (m *Mastodon) GetFileLinks(fileIDs []string) []string
- func (m *Mastodon) GetLastSentMsgs() []string
- func (m *Mastodon) GetLastViewedAt(channelID string) int64
- func (m *Mastodon) GetMe() *bridge.UserInfo
- func (m *Mastodon) GetPostThread(postID string) interface{}
- func (m *Mastodon) GetPosts(channelID string, limit int) interface{}
- func (m *Mastodon) GetPostsSince(channelID string, since int64) interface{}
- func (m *Mastodon) GetTeamName(teamID string) string
- func (m *Mastodon) GetUser(userID string) *bridge.UserInfo
- func (m *Mastodon) GetUserByUsername(username string) *bridge.UserInfo
- func (m *Mastodon) GetUsers() []*bridge.UserInfo
- func (m *Mastodon) Invite(channelID, username string) error
- func (m *Mastodon) Join(channelName string) (string, string, error)
- func (m *Mastodon) Kick(channelID, username string) error
- func (m *Mastodon) List() (map[string]string, error)
- func (m *Mastodon) Logout() error
- func (m *Mastodon) ModifyPost(channelID, text string) error
- func (m *Mastodon) MsgChannel(channelID, text string) (string, error)
- func (m *Mastodon) MsgChannelThread(username, parentID, text string) (string, error)
- func (m *Mastodon) MsgUser(username, text string) (string, error)
- func (m *Mastodon) MsgUserThread(username, parentID, text string) (string, error)
- func (m *Mastodon) Nick(name string) error
- func (m *Mastodon) Part(channelID string) error
- func (m *Mastodon) Protocol() string
- func (m *Mastodon) RemoveReaction(msgID, emoji string) error
- func (m *Mastodon) SearchPosts(search string) interface{}
- func (m *Mastodon) SearchUsers(query string) ([]*bridge.UserInfo, error)
- func (m *Mastodon) SetStatus(status string) error
- func (m *Mastodon) SetTopic(channelID, text string) error
- func (m *Mastodon) StatusUser(name string) (string, error)
- func (m *Mastodon) StatusUsers() (map[string]string, error)
- func (m *Mastodon) Topic(channelID string) string
- func (m *Mastodon) UpdateChannels() error
- func (m *Mastodon) UpdateLastViewed(channelID string)
- func (m *Mastodon) UpdateLastViewedUser(userID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Mastodon ¶
func (*Mastodon) AddReaction ¶
func (*Mastodon) GetChannel ¶
func (m *Mastodon) GetChannel(channelID string) (*bridge.ChannelInfo, error)
func (*Mastodon) GetChannelID ¶
func (*Mastodon) GetChannelName ¶
func (*Mastodon) GetChannelUsers ¶
func (*Mastodon) GetChannels ¶
func (m *Mastodon) GetChannels() []*bridge.ChannelInfo
func (*Mastodon) GetFileLinks ¶
func (*Mastodon) GetLastSentMsgs ¶ added in v0.27.1
func (*Mastodon) GetLastViewedAt ¶
func (*Mastodon) GetPostThread ¶ added in v0.28.0
func (*Mastodon) GetPostsSince ¶
func (*Mastodon) GetTeamName ¶
func (*Mastodon) GetUserByUsername ¶
func (*Mastodon) ModifyPost ¶
func (*Mastodon) MsgChannelThread ¶
func (*Mastodon) MsgUserThread ¶
func (*Mastodon) RemoveReaction ¶
func (*Mastodon) SearchPosts ¶
func (*Mastodon) SearchUsers ¶
func (*Mastodon) UpdateChannels ¶
func (*Mastodon) UpdateLastViewed ¶
func (*Mastodon) UpdateLastViewedUser ¶
Click to show internal directories.
Click to hide internal directories.