Documentation ¶
Index ¶
- func UpdateVersion(db *SpyBotDb)
- type SpyBotDb
- func (database *SpyBotDb) ConnectToSession(userId int64, sessionId int64) (isSucceeded bool, previousSessionId int64, wasInSession bool)
- func (database *SpyBotDb) CreateSession(userId int64) (sessionId int64, previousSessionId int64, wasInSession bool)
- func (database *SpyBotDb) Disconnect()
- func (database *SpyBotDb) DoesSessionExist(sessionId int64) (isExists bool)
- func (database *SpyBotDb) GetChatId(userId int64) (chatId int64)
- func (database *SpyBotDb) GetDatabaseVersion() (version string)
- func (database *SpyBotDb) GetSessionIdFromToken(token string) (sessionId int64, isFound bool)
- func (database *SpyBotDb) GetSessionMessageId(userId int64) (messageId int64)
- func (database *SpyBotDb) GetTokenFromSessionId(sessionId int64) (token string, isFound bool)
- func (database *SpyBotDb) GetUserChatId(userId int64) (chatId int64)
- func (database *SpyBotDb) GetUserId(chatId int64, userLangCode string) (userId int64)
- func (database *SpyBotDb) GetUserLanguage(userId int64) (language string)
- func (database *SpyBotDb) GetUserSession(userId int64) (sessionId int64, isInSession bool)
- func (database *SpyBotDb) GetUserTheme(userId int64) (theme string)
- func (database *SpyBotDb) GetUsersCountInSession(sessionId int64) (usersCount int64)
- func (database *SpyBotDb) GetUsersInSession(sessionId int64) (users []int64)
- func (database *SpyBotDb) IsConnectionOpened() bool
- func (database *SpyBotDb) IsThemeRevealed(userId int64) (isRevealed bool)
- func (database *SpyBotDb) LeaveSession(userId int64) (sessionId int64, wasInSession bool)
- func (database *SpyBotDb) SetDatabaseVersion(version string)
- func (database *SpyBotDb) SetSessionMessageId(userId int64, messageId int64)
- func (database *SpyBotDb) SetThemeRevealed(userId int64, isRevealed bool)
- func (database *SpyBotDb) SetUserLanguage(userId int64, language string)
- func (database *SpyBotDb) SetUserTheme(userId int64, theme string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateVersion ¶
func UpdateVersion(db *SpyBotDb)
Types ¶
type SpyBotDb ¶
type SpyBotDb struct {
// contains filtered or unexported fields
}
func (*SpyBotDb) ConnectToSession ¶
func (*SpyBotDb) CreateSession ¶
func (*SpyBotDb) Disconnect ¶
func (database *SpyBotDb) Disconnect()
func (*SpyBotDb) DoesSessionExist ¶
func (*SpyBotDb) GetDatabaseVersion ¶
func (*SpyBotDb) GetSessionIdFromToken ¶
func (*SpyBotDb) GetSessionMessageId ¶
func (*SpyBotDb) GetTokenFromSessionId ¶
func (*SpyBotDb) GetUserChatId ¶
func (*SpyBotDb) GetUserLanguage ¶
func (*SpyBotDb) GetUserSession ¶
func (*SpyBotDb) GetUserTheme ¶
func (*SpyBotDb) GetUsersCountInSession ¶
func (*SpyBotDb) GetUsersInSession ¶
func (*SpyBotDb) IsConnectionOpened ¶
func (*SpyBotDb) IsThemeRevealed ¶
func (*SpyBotDb) LeaveSession ¶
func (*SpyBotDb) SetDatabaseVersion ¶
func (*SpyBotDb) SetSessionMessageId ¶
func (*SpyBotDb) SetThemeRevealed ¶
func (*SpyBotDb) SetUserLanguage ¶
func (*SpyBotDb) SetUserTheme ¶
Click to show internal directories.
Click to hide internal directories.