Documentation ¶
Index ¶
- type Debug
- func (Debug) AutoJoinAllChannel() bool
- func (Debug) Connect() bool
- func (d *Debug) DeleteMessage(event Event) bool
- func (Debug) GetEmailByUsername(username string) string
- func (Debug) GetEvents() <-chan Event
- func (d *Debug) InviteUser(userID, channelID string) bool
- func (Debug) IsAlive() bool
- func (d *Debug) KickUser(userID, channelID string) bool
- func (Debug) ListenForEvents()
- func (d *Debug) MessagePublic(channelID, message string) bool
- func (d *Debug) MessageUser(userID, message string) bool
- func (Debug) Reconnect() bool
- func (Debug) ReplaceMessagePlaceholders(event Event, message string) string
- type Event
- type Mattermost
- func (m *Mattermost) AutoJoinAllChannel() bool
- func (m *Mattermost) Connect() bool
- func (m *Mattermost) DeleteMessage(event Event) bool
- func (m *Mattermost) GetEmailByUsername(username string) string
- func (m *Mattermost) GetEvents() <-chan Event
- func (m *Mattermost) InviteUser(userID, channelID string) bool
- func (m *Mattermost) IsAlive() bool
- func (m *Mattermost) KickUser(userID, channelID string) bool
- func (m *Mattermost) ListenForEvents()
- func (m *Mattermost) MessagePublic(channelID, message string) bool
- func (m *Mattermost) MessageUser(userID, message string) bool
- func (m *Mattermost) Reconnect() bool
- func (m *Mattermost) ReplaceMessagePlaceholders(event Event, message string) string
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Debug ¶
type Debug struct { MessagePublicLog []messagePublicLog MessageUserLog []messageUserLog InviteUserLog []inviteUserLog KickUserLog []kickUserLog DeleteMessageLog []deleteMessageLog }
func (Debug) AutoJoinAllChannel ¶
func (*Debug) DeleteMessage ¶
func (Debug) GetEmailByUsername ¶
func (*Debug) InviteUser ¶
func (Debug) ListenForEvents ¶
func (Debug) ListenForEvents()
func (*Debug) MessagePublic ¶
func (*Debug) MessageUser ¶
type Mattermost ¶
type Mattermost struct {
// contains filtered or unexported fields
}
func NewMattermost ¶
func NewMattermost(apiUrl, username, password, team string) *Mattermost
func (*Mattermost) AutoJoinAllChannel ¶
func (m *Mattermost) AutoJoinAllChannel() bool
func (*Mattermost) Connect ¶
func (m *Mattermost) Connect() bool
func (*Mattermost) DeleteMessage ¶
func (m *Mattermost) DeleteMessage(event Event) bool
func (*Mattermost) GetEmailByUsername ¶
func (m *Mattermost) GetEmailByUsername(username string) string
func (*Mattermost) GetEvents ¶
func (m *Mattermost) GetEvents() <-chan Event
func (*Mattermost) InviteUser ¶
func (m *Mattermost) InviteUser(userID, channelID string) bool
func (*Mattermost) KickUser ¶
func (m *Mattermost) KickUser(userID, channelID string) bool
func (*Mattermost) ListenForEvents ¶
func (m *Mattermost) ListenForEvents()
func (*Mattermost) MessagePublic ¶
func (m *Mattermost) MessagePublic(channelID, message string) bool
func (*Mattermost) MessageUser ¶
func (m *Mattermost) MessageUser(userID, message string) bool
func (*Mattermost) Reconnect ¶
func (m *Mattermost) Reconnect() bool
func (*Mattermost) ReplaceMessagePlaceholders ¶
func (m *Mattermost) ReplaceMessagePlaceholders(event Event, message string) string
type Provider ¶
type Provider interface { Connect() bool Reconnect() bool IsAlive() bool ListenForEvents() GetEvents() <-chan Event AutoJoinAllChannel() bool // Get Information GetEmailByUsername(username string) string // Actions MessagePublic(channelID, message string) bool MessageUser(userID, message string) bool InviteUser(userID, channelID string) bool KickUser(userID, channelID string) bool DeleteMessage(event Event) bool ReplaceMessagePlaceholders(event Event, message string) string }
Click to show internal directories.
Click to hide internal directories.