A referência da API é gerada a partir dos comentários de documentação Go no código-fonte e está escrita em inglês.
package pgstore
import "github.com/nsgo-dev/game/pkg/online/leaderboard/selfhost/pgstore"Apenas em linux, macos, windows, android, ios
Visão geral
Package pgstore is experimental: its API and documented formats may change in a minor release. See the API stability policy. keeps the self-hosted leaderboard's records in Postgres through the pgx driver, so several service processes can share them.
Índice
Funções
func Open(ctx context.Context, dsn string) (*sqlstore.Store, error)Open connects to the Postgres database at dsn, migrates its leaderboard schema and returns a store over it. Several service processes may share the database.