Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUncivIDAlreadyBound = errors.New("Unciv ID already connected to a Telegram ID") ErrGameNotFound = errors.New("game not found in database") )
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface {
GetGameByID(string, bool) (Game, error)
GetGameByChatID(int64, bool) (Game, error)
GetPlayerByUncivID(string, bool) (Player, error)
AddGame(Game) error
AddPlayer(Player) error
ConnectTelegram(string, int64) error
}
func NewMemoryDB ¶
Click to show internal directories.
Click to hide internal directories.