Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapEnvVarToFlag ¶
MapEnvVarToFlag takes a mapping of ENV var names to flag names and iterates over that mapping attempting to set the flag value with the ENV var key name. see: https://github.com/spf13/viper/issues/461
func SetFlagsFromEnv ¶
SetFlagsFromEnv parses all registered flags in the given flagset, and if they are not already set it attempts to set their values from environment variables. Environment variables take the name of the flag but are UPPERCASE, and any dashes are replaced by underscores. Environment variables additionally are prefixed by the given string followed by and underscore. For example, if prefix=PREFIX: some-flag => PREFIX_SOME_FLAG
func SetupLogger ¶
SetupLogger is responsible for building up a basic logrus FieldLogger instance with a specific log level and fields configuration.
Types ¶
This section is empty.