README ¶ api/sinks/postgres/misc Miscellaneous database queries that don't belong in a more specific subpackage. Currently provides one query: competition duration, derived by reading the timestamp of the first and last entries in the score archive. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func GetCompDuration(ctx context.Context, db *pgxpool.Pool) (time.Duration, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetCompDuration ¶ func GetCompDuration(ctx context.Context, db *pgxpool.Pool) (time.Duration, error) GetCompDuration returns how long the competition has been running Types ¶ This section is empty. Source Files ¶ View all Source files duration.go Click to show internal directories. Click to hide internal directories.