Documentation ¶
Index ¶
- Constants
- type Bot
- func (b *Bot) CreateAuthenticationToken(userId, channelId string) (token string)
- func (b *Bot) CreateLink(userId, channelId, path string, params url.Values) string
- func (b *Bot) GetBotUser() *model.User
- func (b *Bot) GetChannelInfo(channelId string) *model.Channel
- func (b *Bot) GetDetailsFromAuthenticationToken(token string) (userId, channelId string, exists bool)
- func (b *Bot) GetUserInfo(userId string) *model.User
- func (b *Bot) IsRegistered(channelId string) bool
- func (b *Bot) SaveRegistration(r *storage.Registration) error
- func (b *Bot) SendMsgToDebuggingChannel(msg string, replyToId string)
- func (b *Bot) TouchAuthenticationToken(token string) bool
Constants ¶
View Source
const ( ApplicationName = "Mattermost Talks Voting Bot" ChannelLogName = "talks-voting-bot-debug" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct {
// contains filtered or unexported fields
}
func ExtractBotFromContext ¶
func ExtractBotFromRequest ¶
func (*Bot) CreateAuthenticationToken ¶
func (*Bot) CreateLink ¶
func (*Bot) GetBotUser ¶
func (*Bot) GetDetailsFromAuthenticationToken ¶
func (*Bot) IsRegistered ¶
func (*Bot) SaveRegistration ¶
func (b *Bot) SaveRegistration(r *storage.Registration) error
func (*Bot) SendMsgToDebuggingChannel ¶
func (*Bot) TouchAuthenticationToken ¶
Click to show internal directories.
Click to hide internal directories.