config

package
v6.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const AppName = "t3c-request"
View Source
const UserAgent = AppName + "/" + Version
View Source
const Version = "0.1"

Variables

This section is empty.

Functions

func LoadOldCfg

func LoadOldCfg(path string) (*t3cutil.ConfigData, error)

func Usage

func Usage()

Usage() writes command line options and usage to 'stderr'

Types

type Cfg

type Cfg struct {
	CommandArgs      []string
	LogLocationDebug string
	LogLocationWarn  string
	LogLocationError string
	LogLocationInfo  string
	LoginDispersion  time.Duration
	t3cutil.TCCfg
}

func InitConfig

func InitConfig() (Cfg, error)

InitConfig() intializes the configuration variables and loggers.

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) PrintConfig

func (cfg Cfg) PrintConfig()

func (Cfg) WarningLog

func (cfg Cfg) WarningLog() log.LogLocation

Jump to

Keyboard shortcuts

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