Documentation ¶
Index ¶
- Constants
- type Admin
- type Bot
- type Config
- type FlowController
- 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) Timed() Logger
- func (l *NilLogger) Warnf(format string, args ...interface{})
- func (l *NilLogger) With(logContext LogContext) Logger
- type Poster
- type TestLogger
- func (l *TestLogger) Debugf(format string, args ...interface{})
- func (l *TestLogger) Errorf(format string, args ...interface{})
- func (l *TestLogger) Infof(format string, args ...interface{})
- func (l *TestLogger) Timed() Logger
- func (l *TestLogger) Warnf(format string, args ...interface{})
- func (l *TestLogger) With(logContext LogContext) Logger
Constants ¶
View Source
const Elapsed = "Elapsed"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Config ¶
type Config 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 }
func (Config) ToStorableConfig ¶
type FlowController ¶
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(mattermostUserID, format string, args ...interface{}) (string, error) // DMWithAttachments posts a Direct Message that contains Slack attachments. // Often used to include post actions. DMWithAttachments(mattermostUserID string, attachments ...*model.SlackAttachment) (string, error) // Ephemeral sends an ephemeral message to a user Ephemeral(mattermostUserID, channelID, format string, args ...interface{}) // DMPUpdate updates the postID with the formatted message DMUpdate(postID, format string, args ...interface{}) error // DeletePost deletes a single post DeletePost(postID string) error // DMUpdatePost substitute one post with another UpdatePost(post *model.Post) error }
type TestLogger ¶
func (*TestLogger) Debugf ¶
func (l *TestLogger) Debugf(format string, args ...interface{})
func (*TestLogger) Errorf ¶
func (l *TestLogger) Errorf(format string, args ...interface{})
func (*TestLogger) Infof ¶
func (l *TestLogger) Infof(format string, args ...interface{})
func (*TestLogger) Timed ¶
func (l *TestLogger) Timed() Logger
func (*TestLogger) Warnf ¶
func (l *TestLogger) Warnf(format string, args ...interface{})
func (*TestLogger) With ¶
func (l *TestLogger) With(logContext LogContext) Logger
Source Files ¶
Click to show internal directories.
Click to hide internal directories.