Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BotContext ¶
type BotContext interface { PluginManager() plugins.PluginManager AddPlugin(key interface{}, val plugins.BotMessagePlugin) WebSocketRTM() Run(connectedFunc func(event plugins.BotEvent)) // plugins.MessageSender SendMessage(message, channel string) }
func NewBotContext ¶
func NewBotContext(token string) (BotContext, error)
func NewBotContextNotSysstd ¶
func NewBotContextNotSysstd(token string) (BotContext, error)
type OnMemoryRepository ¶
type OnMemoryRepository struct {
// contains filtered or unexported fields
}
func (*OnMemoryRepository) Close ¶
func (r *OnMemoryRepository) Close() error
type Repository ¶
type Repository interface { Load(key string) (string, error) Save(key string, value string) error Close() error }
func NewOnMemoryRepository ¶
func NewOnMemoryRepository() Repository
Click to show internal directories.
Click to hide internal directories.