Documentation ¶
Index ¶
- type BotStorage
- type LevelDB
- func (db *LevelDB) DeleteUser(user *access.User) error
- func (db *LevelDB) GetUser(user *tgbotapi.User) (*access.User, error)
- func (db *LevelDB) GetUserNextChatMessageHandler(user *access.User, chat *tgbotapi.Chat) (string, error)
- func (db *LevelDB) HasUser(user *tgbotapi.User) (bool, error)
- func (db *LevelDB) PutUser(user *access.User) error
- func (db *LevelDB) SetUserNextChatMessageHandler(user *access.User, chat *tgbotapi.Chat, handlerName string) error
- type UserStateStorage
- type UserStorage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BotStorage ¶
type BotStorage interface { UserStorage UserStateStorage }
func NewLevelDBStorage ¶
func NewLevelDBStorage(path string) (BotStorage, error)
type LevelDB ¶
func (*LevelDB) GetUserNextChatMessageHandler ¶
type UserStateStorage ¶
Click to show internal directories.
Click to hide internal directories.