internal

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64urlEscape

func Base64urlEscape(b64 string) string

func HTTPRequestSuccessful

func HTTPRequestSuccessful(resp *http.Response) bool

func LogHTTPResponseFields

func LogHTTPResponseFields(resp *http.Response) logrus.Fields

func LogSetup

func LogSetup(debugFlag bool)

func Random16bytes

func Random16bytes() string

func Sha256Hash

func Sha256Hash(val1, val2 string) string

func Sha256Url

func Sha256Url(val1, val2 string) string

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

Jump to

Keyboard shortcuts

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