Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddScore ¶
func AddScore( ctx context.Context, sinks config.Sinks, db *pgxpool.Pool, score types.Score, ) error
AddScore sends the score to every configured sink.
func GetRandomUser ¶
func GetRandomUser( ctx context.Context, cfg *config.APIConfigSpec, db *pgxpool.Pool, userListID types.UserListName, teamNum types.TeamNum, ) (types.User, error)
GetRandomUser returns a random user+password. If the database sink is configured it pulls from there, otherwise it just pulls the default creds from the config.
func InitSinks ¶
func InitSinks(cfg *config.APIConfigSpec) error
InitSinks calls the correct initialization functions for each of the enabled sinks.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package postgres contains all PostgreSQL databse connection logic and queries.
|
Package postgres contains all PostgreSQL databse connection logic and queries. |
|
conn
Package conn handles the initialization and distribution of the database connection object.
|
Package conn handles the initialization and distribution of the database connection object. |
|
graphs
Package graphs contains database functions for generating visualizations.
|
Package graphs contains database functions for generating visualizations. |
|
users
Package users contains the DB functions and all SQL queries involving scoring users.
|
Package users contains the DB functions and all SQL queries involving scoring users. |
Click to show internal directories.
Click to hide internal directories.