config

package
v5.1.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dclose

func Dclose(c io.Closer)

func ErrCheck

func ErrCheck(err error)

func PrintConfig

func PrintConfig(cfg Cfg)

func Usage

func Usage()

Types

type Cfg

type Cfg struct {
	LogLocationErr   string
	LogLocationInfo  string
	LogLocationWarn  string
	LogLocationDebug string
	TOInsecure       bool
	TOUser           string
	TOPass           string
	TOUrl            string
	Transport        *http.Transport
}

func GetCfg

func GetCfg() (Cfg, error)

func (Cfg) DebugLog

func (cfg Cfg) DebugLog() log.LogLocation

func (Cfg) ErrorLog

func (cfg Cfg) ErrorLog() log.LogLocation

func (Cfg) EventLog

func (cfg Cfg) EventLog() log.LogLocation

func (Cfg) InfoLog

func (cfg Cfg) InfoLog() log.LogLocation

func (Cfg) WarningLog

func (cfg Cfg) WarningLog() log.LogLocation

type Creds

type Creds struct {
	User     string `json:"u"`
	Password string `json:"p"`
}

type ToResponse

type ToResponse struct {
	Response string `json:"response"`
}

Jump to

Keyboard shortcuts

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