Documentation
¶
Index ¶
- type Admin
- type Bot
- type BotConfig
- type LogContext
- type Logger
- type NilLogger
- func (l *NilLogger) Debugf(format string, args ...interface{})
- func (l *NilLogger) Errorf(format string, args ...interface{})
- func (l *NilLogger) Infof(format string, args ...interface{})
- func (l *NilLogger) Warnf(format string, args ...interface{})
- func (l *NilLogger) With(logContext LogContext) Logger
- type Poster
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BotConfig ¶
type BotConfig struct { // AdminUserIDs contains a comma-separated list of user IDs that are allowed // to administer plugin functions, even if not Mattermost sysadmins. AdminUserIDs string // AdminLogLevel is "debug", "info", "warn", or "error". AdminLogLevel string // AdminLogVerbose: set to include full context with admin log messages. AdminLogVerbose bool }
type LogContext ¶
type LogContext map[string]interface{}
type NilLogger ¶
type NilLogger struct{}
func (*NilLogger) With ¶
func (l *NilLogger) With(logContext LogContext) Logger
type Poster ¶
type Poster interface { // DM posts a simple Direct Message to the specified user DM(userID, format string, args ...interface{}) error // DMWithAttachments posts a Direct Message that contains Slack attachments. // Often used to include post actions. DMWithAttachments(userID string, attachments ...*model.SlackAttachment) error // Ephemeral sends an ephemeral message to a user Ephemeral(userID, channelID, format string, args ...interface{}) }
Click to show internal directories.
Click to hide internal directories.