stores

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stores

type Stores struct {
	UserStore       *user.DBStore
	GameStore       *game.Cache // we need to get rid of this cache
	SoughtGameStore *soughtgame.DBStore
	PresenceStore   *redis.RedisPresenceStore
	ChatStore       *redis.RedisChatStore
	ListStatStore   *stats.DBStore
	NotorietyStore  *mod.DBStore
	TournamentStore *tournament.Cache // this cache too
	ConfigStore     *config.RedisConfigStore
	SessionStore    *session.DBStore
	PuzzleStore     *puzzles.DBStore
	CommentsStore   *comments.DBStore

	// Refactor this soon:
	GameDocumentStore  *owstores.GameDocumentStore
	AnnotatedGameStore *owstores.DBStore
	// We probably are going to be moving everything to a single queries thingy
	// like this:
	Queries *models.Queries
}

func NewInitializedStores

func NewInitializedStores(dbPool *pgxpool.Pool, redisPool *redigoredis.Pool, cfg *cfg.Config) (*Stores, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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