Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CacheDB *badger.DB
View Source
var UserDB *badger.DB
Functions ¶
func CacheMessageEvents ¶
CacheMessageEvents writes message infos into the cache into the defined room
func OpenCacheDB ¶
OpenCacheDB opens or generates the Database file for settings and Cache
func OpenUserDB ¶
OpenUserDB opens or generates the Database file for settings and Cache
Types ¶
type MorpheusStorage ¶
func (*MorpheusStorage) LoadNextBatch ¶
func (m *MorpheusStorage) LoadNextBatch(userID string) (nextBatch string, err error)
LoadNextBatch loads the next_batch token for the given user.
func (*MorpheusStorage) UpdateNextBatch ¶
func (m *MorpheusStorage) UpdateNextBatch(userID, nextBatch string) (err error)
UpdateNextBatch updates the next_batch token for the given user.
Click to show internal directories.
Click to hide internal directories.