mattermost

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(input interface{}, output interface{}) error

func New

func New(v *viper.Viper, cred bridge.Credentials, eventChan chan *bridge.Event, onWsConnect func()) (bridge.Bridger, *matterclient.Client, error)

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 (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) GetUser

func (m *Mattermost) GetUser(userID string) *bridge.UserInfo

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) Join

func (m *Mattermost) Join(channelName string) (string, string, error)

func (*Mattermost) Kick

func (m *Mattermost) Kick(channelID, username string) error

func (*Mattermost) List

func (m *Mattermost) List() (map[string]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) MsgUser

func (m *Mattermost) MsgUser(userID, 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

Jump to

Keyboard shortcuts

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