Documentation
¶
Index ¶
- func ChangePauseState(ctx context.Context, db *pgxpool.Pool, desiredState types.PauseState, ...) (changed bool, err error)
- func GetPauseRecord(ctx context.Context, db *pgxpool.Pool) (types.PauseRecord, error)
- func InitPauses(ctx context.Context, db *pgxpool.Pool, cfg *config.APIConfigSpec) error
- func IsPaused(ctx context.Context, db *pgxpool.Pool, pauseType types.PauseType) (types.PauseState, error)
- func IsPausedTx(ctx context.Context, tx pgx.Tx, pauseType types.PauseType) (types.PauseState, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangePauseState ¶
func ChangePauseState( ctx context.Context, db *pgxpool.Pool, desiredState types.PauseState, desiredType types.PauseType, ) (changed bool, err error)
ChangePauseState pauses or unpauses the competition.
func GetPauseRecord ¶
GetPauseRecord returns the current pause state, as well as the time that state went into effect.
func InitPauses ¶
InitPauses sets the pause state in the db to the configured default when none exists.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.