Documentation ¶
Index ¶
- type Manager
- type Mock
- func (r *Mock) GetActivity(chat int64) (string, error)
- func (r Mock) GetHost(chat int64) (string, error)
- func (r Mock) GetToken(chat int64) (string, error)
- func (r *Mock) ResetData(chat int64) error
- func (r *Mock) SetActivity(activity string, chat int64)
- func (r Mock) SetHost(host string, chat int64)
- func (r Mock) SetToken(token string, chat int64)
- func (r *Mock) StorageHost() map[int64]string
- func (r Mock) StorageToken() map[int64]string
- type RedisStorage
- func (r RedisStorage) GetActivity(chat int64) (string, error)
- func (r RedisStorage) GetHost(chat int64) (string, error)
- func (r RedisStorage) GetToken(chat int64) (string, error)
- func (r RedisStorage) ResetData(chat int64) error
- func (r RedisStorage) SetActivity(activity string, chat int64)
- func (r RedisStorage) SetHost(host string, chat int64)
- func (r RedisStorage) SetToken(token string, chat int64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Mock ¶
type Mock struct {
// contains filtered or unexported fields
}
func NewStorageMock ¶
func NewStorageMock() *Mock
func (*Mock) SetActivity ¶
func (*Mock) StorageHost ¶
func (Mock) StorageToken ¶
type RedisStorage ¶
type RedisStorage struct {
// contains filtered or unexported fields
}
func (RedisStorage) GetActivity ¶
func (r RedisStorage) GetActivity(chat int64) (string, error)
func (RedisStorage) ResetData ¶
func (r RedisStorage) ResetData(chat int64) error
func (RedisStorage) SetActivity ¶
func (r RedisStorage) SetActivity(activity string, chat int64)
func (RedisStorage) SetHost ¶
func (r RedisStorage) SetHost(host string, chat int64)
func (RedisStorage) SetToken ¶
func (r RedisStorage) SetToken(token string, chat int64)
Click to show internal directories.
Click to hide internal directories.