utils

package module
v0.0.0-...-d2a8444 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnvVariableBool

func GetEnvVariableBool(name string, defaultValue bool) bool

func GetEnvVariableInt

func GetEnvVariableInt(name string, defaultValue int) int

func GetEnvVariableString

func GetEnvVariableString(name string, defaultValue string) string

func GetMachineIpAddress

func GetMachineIpAddress() (string, error)

func LoadConfigFromEnvs

func LoadConfigFromEnvs(config interface{}) error

Types

type ConfigLocation

type ConfigLocation struct {
	ConfigPath string `mapstructure:"CONFIG_PATH"`
	ConfigName string `mapstructure:"CONFIG_NAME"`
}

func ProvideConfigLocation

func ProvideConfigLocation() *ConfigLocation

Jump to

Keyboard shortcuts

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