infra

package
v0.0.0-...-8be9ec9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

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 GetDb

func GetDb() *Database

func NewDatabase

func NewDatabase() *Database

func (*Database) AddFollower

func (db *Database) AddFollower(gameName string, follower string) error

func (*Database) GetGameSessionByMsgId

func (db *Database) GetGameSessionByMsgId(msgId string, gameName string, gameState interface{}) (*models.GameSession, error)

func (*Database) ListFollowers

func (db *Database) ListFollowers(gameName string) ([]string, error)

func (*Database) PersistGameSession

func (db *Database) PersistGameSession(sess *models.GameSession) error

func (*Database) RemoveFollower

func (db *Database) RemoveFollower(gameName string, follower string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址