Documentation
¶
Index ¶
- type Database
- func (db *Database) AddFollower(gameName string, follower string) error
- func (db *Database) GetGameSessionByMsgId(msgId string, gameName string, gameState interface{}) (*models.GameSession, error)
- func (db *Database) ListFollowers(gameName string) ([]string, error)
- func (db *Database) PersistGameSession(sess *models.GameSession) error
- func (db *Database) RemoveFollower(gameName string, follower string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func NewDatabase ¶
func NewDatabase() *Database
func (*Database) AddFollower ¶
func (*Database) GetGameSessionByMsgId ¶
func (*Database) ListFollowers ¶
func (*Database) PersistGameSession ¶
func (db *Database) PersistGameSession(sess *models.GameSession) error
Click to show internal directories.
Click to hide internal directories.