config

package
v7.0.0-rc0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 8 Imported by: 4

Documentation

Index

Constants

View Source
const AppName = "t3c-update"

Variables

This section is empty.

Functions

func Usage

func Usage()

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

Types

type Cfg

type Cfg struct {
	Debug            bool
	CommandArgs      []string
	LogLocationDebug string
	LogLocationError string
	LogLocationInfo  string
	LogLocationWarn  string
	LoginDispersion  time.Duration
	CacheHostName    string
	GetData          string
	ConfigApplyTime  *time.Time
	RevalApplyTime   *time.Time
	ConfigApplyBool  *bool
	RevalApplyBool   *bool
	t3cutil.TCCfg
	Version     string
	GitRevision string
}

func InitConfig

func InitConfig(appVersion string, gitRevision string) (Cfg, error)

InitConfig() intializes the configuration variables and loggers.

func (Cfg) AppVersion

func (cfg Cfg) AppVersion() string

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

func (cfg Cfg) UserAgent() string

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