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