background

package
v0.0.0-...-ce806dc Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RefreshGame

func RefreshGame(ctx context.Context, bggId int64,
	familyBacklog map[int64]bool, db *sql.DB, api *bgg.BggApi) (*postgres.Game, error)

func UpdateEventsFromGencon

func UpdateEventsFromGencon(db *sql.DB, sourceFile string)

func UpdateGamesFromBGG

func UpdateGamesFromBGG(db *sql.DB)

Types

type GameCache

type GameCache struct {
	// contains filtered or unexported fields
}

func NewGameCache

func NewGameCache(db *sql.DB) *GameCache

func (*GameCache) FindGame

func (gc *GameCache) FindGame(name string) *postgres.Game

func (*GameCache) PeriodicallyUpdate

func (gc *GameCache) PeriodicallyUpdate()

func (*GameCache) UpdateCache

func (gc *GameCache) UpdateCache() error

Jump to

Keyboard shortcuts

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