Documentation ¶
Index ¶
- type Credentials
- type MMClient
- func (m *MMClient) DeleteMessage(postId string) error
- func (m *MMClient) EditMessage(postId string, text string) (string, error)
- func (m *MMClient) GetChannelHeader(channelId string) string
- func (m *MMClient) GetChannelId(name string, teamId string) string
- func (m *MMClient) GetChannelName(channelId string) string
- func (m *MMClient) GetChannelTeamId(id string) string
- func (m *MMClient) GetChannels() []*model.Channel
- func (m *MMClient) GetFileLinks(filenames []string) []string
- func (m *MMClient) GetLastViewedAt(channelId string) int64
- func (m *MMClient) GetMoreChannels() []*model.Channel
- func (m *MMClient) GetNickName(userId 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) GetPublicLink(filename string) string
- func (m *MMClient) GetPublicLinks(filenames []string) []string
- func (m *MMClient) GetStatus(userId string) string
- func (m *MMClient) GetStatuses() map[string]string
- func (m *MMClient) GetTeamFromChannel(channelId string) string
- func (m *MMClient) GetTeamId() string
- func (m *MMClient) GetTeamName(teamId string) string
- func (m *MMClient) GetUser(userId string) *model.User
- func (m *MMClient) GetUserName(userId string) string
- func (m *MMClient) GetUsers() map[string]*model.User
- func (m *MMClient) JoinChannel(channelId string) error
- func (m *MMClient) Login() error
- func (m *MMClient) Logout() error
- func (m *MMClient) PostMessage(channelId string, text string) (string, error)
- func (m *MMClient) PostMessageWithFiles(channelId string, text string, fileIds []string) (string, error)
- func (m *MMClient) SearchPosts(query string) *model.PostList
- func (m *MMClient) SendDirectMessage(toUserId string, msg string)
- func (m *MMClient) SetDebugLog()
- func (m *MMClient) SetLogLevel(level string)
- func (m *MMClient) StatusLoop()
- func (m *MMClient) UpdateChannelHeader(channelId string, header string)
- func (m *MMClient) UpdateChannels() error
- func (m *MMClient) UpdateLastViewed(channelId string)
- func (m *MMClient) UpdateStatus(userId string, status string) error
- func (m *MMClient) UpdateUser(userId string)
- func (m *MMClient) UpdateUserNick(nick string) error
- func (m *MMClient) UpdateUsers() error
- func (m *MMClient) UploadFile(data []byte, channelId string, filename string) (string, error)
- func (m *MMClient) UsernamesInChannel(channelId string) []string
- func (m *MMClient) WsReceiver()
- type Message
- type Team
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credentials ¶
type MMClient ¶
type MMClient struct { sync.RWMutex *Credentials Team *Team OtherTeams []*Team Client *model.Client4 User *model.User Users map[string]*model.User MessageChan chan *Message WsClient *websocket.Conn WsQuit bool WsAway bool WsConnected bool WsSequence int64 WsPingChan chan *model.WebSocketResponse ServerVersion string OnWsConnect func() // contains filtered or unexported fields }
func (*MMClient) DeleteMessage ¶ added in v1.2.0
func (*MMClient) EditMessage ¶ added in v1.1.0
func (*MMClient) GetChannelHeader ¶
func (*MMClient) GetChannelName ¶
func (*MMClient) GetChannelTeamId ¶ added in v0.14.0
func (*MMClient) GetChannels ¶
GetChannels returns all channels we're members off
func (*MMClient) GetFileLinks ¶ added in v0.16.1
func (*MMClient) GetLastViewedAt ¶
func (*MMClient) GetMoreChannels ¶
GetMoreChannels returns existing channels where we're not a member off.
func (*MMClient) GetNickName ¶ added in v1.11.1
func (*MMClient) GetPostsSince ¶
func (*MMClient) GetPublicLink ¶
func (*MMClient) GetPublicLinks ¶
func (*MMClient) GetStatuses ¶ added in v0.9.1
func (*MMClient) GetTeamFromChannel ¶
GetTeamFromChannel returns teamId belonging to channel (DM channels have no teamId).
func (*MMClient) GetTeamName ¶
GetTeamName returns the name of the specified teamId
func (*MMClient) GetUserName ¶ added in v0.14.0
func (*MMClient) JoinChannel ¶
func (*MMClient) PostMessage ¶
func (*MMClient) PostMessageWithFiles ¶ added in v1.3.0
func (*MMClient) SendDirectMessage ¶
SendDirectMessage sends a direct message to specified user
func (*MMClient) SetDebugLog ¶ added in v1.8.0
func (m *MMClient) SetDebugLog()
func (*MMClient) SetLogLevel ¶
func (*MMClient) StatusLoop ¶ added in v0.6.1
func (m *MMClient) StatusLoop()
func (*MMClient) UpdateChannelHeader ¶
func (*MMClient) UpdateChannels ¶
func (*MMClient) UpdateLastViewed ¶
func (*MMClient) UpdateStatus ¶ added in v1.9.1
func (*MMClient) UpdateUser ¶ added in v1.11.1
func (*MMClient) UpdateUserNick ¶ added in v1.2.0
func (*MMClient) UpdateUsers ¶
func (*MMClient) UploadFile ¶ added in v1.3.0
func (*MMClient) UsernamesInChannel ¶
func (*MMClient) WsReceiver ¶
func (m *MMClient) WsReceiver()
Click to show internal directories.
Click to hide internal directories.