Documentation
¶
Index ¶
- type Credentials
- type MMClient
- func (m *MMClient) GetChannelHeader(id string) string
- func (m *MMClient) GetChannelId(name string) string
- func (m *MMClient) GetChannelName(id string) string
- func (m *MMClient) GetPosts(channelId string, limit int) *model.PostList
- func (m *MMClient) GetPostsSince(channelId string, time int64) *model.PostList
- func (m *MMClient) JoinChannel(channel string) error
- func (m *MMClient) Login() error
- func (m *MMClient) PostMessage(channel string, text string)
- func (m *MMClient) SearchPosts(query string) *model.PostList
- func (m *MMClient) SetLogLevel(level string)
- func (m *MMClient) UpdateChannelHeader(channelId string, header string)
- func (m *MMClient) UpdateChannels() error
- func (m *MMClient) UpdateLastViewed(channelId string)
- func (m *MMClient) UpdateUsers() error
- func (m *MMClient) UsernamesInChannel(channelName string) []string
- func (m *MMClient) WsReceiver()
- type Message
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credentials ¶
type MMClient ¶
type MMClient struct { *Credentials Client *model.Client WsClient *websocket.Conn Channels *model.ChannelList MoreChannels *model.ChannelList User *model.User Users map[string]*model.User MessageChan chan *Message Team *model.Team // contains filtered or unexported fields }
func (*MMClient) GetChannelHeader ¶
func (*MMClient) GetChannelId ¶
func (*MMClient) GetChannelName ¶
func (*MMClient) GetPostsSince ¶
func (*MMClient) JoinChannel ¶
func (*MMClient) PostMessage ¶
func (*MMClient) SetLogLevel ¶
func (*MMClient) UpdateChannelHeader ¶
func (*MMClient) UpdateChannels ¶
func (*MMClient) UpdateLastViewed ¶
func (*MMClient) UpdateUsers ¶
func (*MMClient) UsernamesInChannel ¶
func (*MMClient) WsReceiver ¶
func (m *MMClient) WsReceiver()
Click to show internal directories.
Click to hide internal directories.