Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseBoolFromEnv ¶ added in v2.1.0
ParseBoolFromEnv retrieves a boolean value from given environment envVar. Returns default value if envVar is not set.
func ParseDurationFromEnv ¶
Helper function to parse a time duration from an environment variable. Returns a default if env is not set, is not parseable to a duration, exceeds max (if max is greater than 0) or is less than min.
func ParseNumFromEnv ¶
Helper function to parse a number from an environment variable. Returns a default if env is not set, is not parseable to a number, exceeds max (if max is greater than 0) or is less than min.
nolint:unparam
func StringFromEnv ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.