Documentation
¶
Index ¶
- type Chat
- type Level
- type Logger
- func (l *Logger) Debug(v ...interface{})
- func (l *Logger) Debugf(fmt string, v ...interface{})
- func (l *Logger) Error(v ...interface{})
- func (l *Logger) Errorf(fmt string, v ...interface{})
- func (l *Logger) Fatal(v ...interface{})
- func (l *Logger) Fatalf(fmt string, v ...interface{})
- func (l *Logger) Info(v ...interface{})
- func (l *Logger) Infof(fmt string, v ...interface{})
- func (l *Logger) Panic(v ...interface{})
- func (l *Logger) Panicf(fmt string, v ...interface{})
- func (l *Logger) Warn(v ...interface{})
- func (l *Logger) Warnf(fmt string, v ...interface{})
- type Plugin
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chat ¶
type Chat struct {
*Plugin
// Returned by Username
Name string
// Returned by Messages
MessageChan chan bot.Message
// Called by Send
SendFunc func(bot.Message) error
// Called by Reply
ReplyFunc func(bot.Message) error
// Called by Direct
DirectFunc func(bot.Message) error
// Called by Topic
TopicFunc func(bot.Message) error
}
Chat is a mock bot.Chat
type Logger ¶
type Logger struct {
// WriteFunc intercepts non-formatted logs
WriteFunc func(Level, ...interface{})
// WritefFunc intercepts formatted logs
WritefFunc func(Level, string, ...interface{})
}
Logger is a mock logger
type Plugin ¶
type Plugin struct {
// Called by Load
LoadFunc func(r *bot.Robot)
// Called by Unload
UnloadFunc func(r *bot.Robot)
}
Plugin is a mock bot.Plugin
Click to show internal directories.
Click to hide internal directories.