Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatDB ¶
ChatDB wraps chat.MemoryDB to persist our chats
func (*ChatDB) LoadChatsFromPostgres ¶
func (d *ChatDB) LoadChatsFromPostgres()
LoadChatsFromPostgres loads chats from postgres
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB ...
func (*DB) ApplyMigrations ¶
func (d *DB) ApplyMigrations()
ApplyMigrations applies migrations from dir to create valid tables. First naiive impl, applies all migrations from folder, step by step.
type MessageDB ¶
MessageDB is db.MessageDB impl
func (*MessageDB) GetLastNMessages ¶
GetLastNMessages ... should return empty slice even on error
Click to show internal directories.
Click to hide internal directories.