Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BotContext ¶
func NewBotContext ¶
func NewBotContext(token string) (*BotContext, error)
func NewBotContextNotSysstd ¶
func NewBotContextNotSysstd(token string) (*BotContext, error)
func (*BotContext) AddPlugin ¶
func (ctx *BotContext) AddPlugin(key interface{}, val plugins.BotMessagePlugin)
func (*BotContext) SendMessage ¶
func (ctx *BotContext) SendMessage(message, channel string)
func (*BotContext) WebSocketRTM ¶
func (ctx *BotContext) WebSocketRTM()
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.