Documentation ¶
Index ¶
Constants ¶
View Source
const ApiServerEnvVarKey = "CHALK_API_SERVER"
View Source
const ClientIdEnvVarKey = "CHALK_CLIENT_ID"
View Source
const ClientSecretEnvVarKey = "CHALK_CLIENT_SECRET"
View Source
const EnvironmentEnvVarKey = "CHALK_ACTIVE_ENVIRONMENT"
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
func FormatBucketDuration ¶
FormatBucketDuration takes an integer number of seconds and returns a string representation that satisfies these conditions:
- the largest possible unit of time (e.g. "10m" instead of "600s")
- a single unit of time (e.g. "601s" instead of "10m1s")
func GenerateGetEnumFunction ¶
func GenerateGetEnumFunction[K comparable](valueToEnum map[string]K, enumName string) func(string) (*K, error)
func ParseBucketDuration ¶
ParseBucketDuration parses a bucket duration string and returns the duration in seconds. The input string must be of the form "Nunit" where N is a positive integer and unit is one of "s", "m", "h", "d", or "w".
func StringOrNil ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.