consts

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	API_SCHEME  string        = "http"          // API default scheme is http
	API_ADDR    string        = ":8081"         // API default address is :8081
	API_TIMEOUT time.Duration = time.Second * 4 // Default timeout to use for API requests is 4 seconds
)
View Source
const BILLING_DATE int = 15

BILLING_DATE is the day of the month billing data is accurate from

Example: On 2024/05/14 the billing date should be 2024/03/31 as information for the month of 2024/04 is not yet ready.

View Source
const SQL_CONNECTION_PARAMS string = "?_journal=WAL&_busy_timeout=5000&_vacuum=incremental&_synchronous=NORMAL&_cache_size=1000000000"

SQL_CONNECTION_PARAMS are our default connections used for performance etc

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupBy added in v1.0.0

type GroupBy string

GroupBy is used by api / front tohandle group by allowed values

const (
	GroupByUnit            GroupBy = "unit"     // Group by the unit only
	GroupByUnitEnvironment GroupBy = "unit-env" // Group by unit and the environment
	GroupByDetailed        GroupBy = "detailed" // Group by more detailed columns (acocunt id, unit, environment, service)
)

Jump to

Keyboard shortcuts

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