Documentation
¶
Index ¶
- func Base64urlEscape(b64 string) string
- func HTTPRequestSuccessful(resp *http.Response) bool
- func LogHTTPResponseFields(resp *http.Response) logrus.Fields
- func LogSetup(debugFlag bool)
- func Random16bytes() string
- func Sha256Hash(val1, val2 string) string
- func Sha256Url(val1, val2 string) string
- type Configuration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64urlEscape ¶
func HTTPRequestSuccessful ¶
func Random16bytes ¶
func Random16bytes() string
func Sha256Hash ¶
Types ¶
type Configuration ¶
type Configuration struct {
Login struct {
Username string `validate:"required" yaml:"username"`
Password string `validate:"required" yaml:"password"`
} `yaml:"login"`
Gateway struct {
Model string `validate:"required,oneof=NOK5G21" yaml:"model"`
IP string `validate:"ipv4" yaml:"ip"`
} `yaml:"gateway"`
}
func ReadConf ¶
func ReadConf(cfgFile string) *Configuration
Click to show internal directories.
Click to hide internal directories.