Documentation ¶
Index ¶
- type MattermostTransport
- func (transport *MattermostTransport) GetChannelsOn() []string
- func (transport *MattermostTransport) GetNicks(channel string) []string
- func (transport *MattermostTransport) Init(botName string, fullConfig *toml.Tree, logger *logrus.Logger, ...)
- func (transport *MattermostTransport) Name() string
- func (transport *MattermostTransport) NickIsMe(nick string) bool
- func (transport *MattermostTransport) Run()
- func (transport *MattermostTransport) SendMassNotice(message string)
- func (transport *MattermostTransport) SendMessage(sourceEvent *events.EventMessage, message string)
- func (transport *MattermostTransport) SendNotice(sourceEvent *events.EventMessage, message string)
- func (transport *MattermostTransport) SendPrivateMessage(sourceEvent *events.EventMessage, nick, message string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MattermostTransport ¶
type MattermostTransport struct {
// contains filtered or unexported fields
}
func (*MattermostTransport) GetChannelsOn ¶
func (transport *MattermostTransport) GetChannelsOn() []string
GetChannelsOn returns a list of names of channels the bot is on.
func (*MattermostTransport) GetNicks ¶
func (transport *MattermostTransport) GetNicks(channel string) []string
GetNicks returns a list of nicks of users on the given channel.
func (*MattermostTransport) Init ¶
func (transport *MattermostTransport) Init(botName string, fullConfig *toml.Tree, logger *logrus.Logger, eventDispatcher *events.EventDispatcher, )
Init initializes a transport instance.
func (*MattermostTransport) Name ¶
func (transport *MattermostTransport) Name() string
Name of the transport.
func (*MattermostTransport) NickIsMe ¶
func (transport *MattermostTransport) NickIsMe(nick string) bool
NickIsMe will do pure magic.
func (*MattermostTransport) Run ¶
func (transport *MattermostTransport) Run()
Run will execute the main loop.
func (*MattermostTransport) SendMassNotice ¶
func (transport *MattermostTransport) SendMassNotice(message string)
func (*MattermostTransport) SendMessage ¶
func (transport *MattermostTransport) SendMessage(sourceEvent *events.EventMessage, message string)
func (*MattermostTransport) SendNotice ¶
func (transport *MattermostTransport) SendNotice(sourceEvent *events.EventMessage, message string)
func (*MattermostTransport) SendPrivateMessage ¶
func (transport *MattermostTransport) SendPrivateMessage(sourceEvent *events.EventMessage, nick, message string)
Click to show internal directories.
Click to hide internal directories.