Version: v0.0.0-...-ba21cce Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2018 License: MIT Imports: 5 Imported by: 0




This section is empty.


This section is empty.


This section is empty.


type RedisBotStore

type RedisBotStore struct {
	// contains filtered or unexported fields

func NewRedisBotStore

func NewRedisBotStore(host string) *RedisBotStore

func (*RedisBotStore) AddBot

func (bs *RedisBotStore) AddBot(p *oauth.AccessResponse) error

func (*RedisBotStore) AllBots

func (bs *RedisBotStore) AllBots() ([]*oauth.AccessResponse, error)

func (*RedisBotStore) GetBot

func (bs *RedisBotStore) GetBot(team string) (*oauth.AccessResponse, error)

func (*RedisBotStore) RemoveBot

func (bs *RedisBotStore) RemoveBot(team string) error

type RedisConversationStore

type RedisConversationStore struct {
	// contains filtered or unexported fields

func NewRedisConversationStore

func NewRedisConversationStore(host string) *RedisConversationStore

func (*RedisConversationStore) Active

func (cs *RedisConversationStore) Active(user, channel, team string) (id, state string, err error)

func (*RedisConversationStore) End

func (cs *RedisConversationStore) End(user, channel, team string) error

func (*RedisConversationStore) GetData

func (cs *RedisConversationStore) GetData(user, channel, team, key string) (string, error)

func (*RedisConversationStore) IsActive

func (cs *RedisConversationStore) IsActive(user, channel, team string) bool

func (*RedisConversationStore) SetData

func (cs *RedisConversationStore) SetData(user, channel, team, key, value string) error

func (*RedisConversationStore) SetState

func (cs *RedisConversationStore) SetState(user, channel, team, state string) error

func (*RedisConversationStore) Start

func (cs *RedisConversationStore) Start(user, channel, team, id string) error

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL