Documentation ¶
Index ¶
- Constants
- func LoadOldCfg(path string) (*t3cutil.ConfigData, error)
- func Usage()
- type Cfg
- func (cfg Cfg) AppVersion() string
- func (cfg Cfg) DebugLog() log.LogLocation
- func (cfg Cfg) ErrorLog() log.LogLocation
- func (cfg Cfg) EventLog() log.LogLocation
- func (cfg Cfg) InfoLog() log.LogLocation
- func (cfg Cfg) PrintConfig()
- func (cfg Cfg) UserAgent() string
- func (cfg Cfg) WarningLog() log.LogLocation
Constants ¶
View Source
const AppName = "t3c-request"
Variables ¶
This section is empty.
Functions ¶
func LoadOldCfg ¶
func LoadOldCfg(path string) (*t3cutil.ConfigData, error)
Types ¶
type Cfg ¶
type Cfg struct { CommandArgs []string LogLocationDebug string LogLocationWarn string LogLocationError string LogLocationInfo string LoginDispersion time.Duration t3cutil.TCCfg Version string GitRevision string }
func InitConfig ¶
InitConfig() intializes the configuration variables and loggers.
func (Cfg) AppVersion ¶
func (Cfg) PrintConfig ¶
func (cfg Cfg) PrintConfig()
func (Cfg) WarningLog ¶
func (cfg Cfg) WarningLog() log.LogLocation
Click to show internal directories.
Click to hide internal directories.