Documentation ¶
Index ¶
Constants ¶
View Source
const Name = internal.ApplicationName
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { Config *Config // contains filtered or unexported fields }
func New ¶
func New() *Application
type BuildInfo ¶
type BuildInfo struct { Version string `json:"version"` // application semantic version GitCommit string `json:"gitCommit"` // git SHA at build-time GitDescription string `json:"gitDescription"` // indication of git tree (either "clean" or "dirty") at build-time BuildDate string `json:"buildDate"` // date of the build GoVersion string `json:"goVersion"` // go runtime version at build-time Compiler string `json:"compiler"` // compiler used at build-time Platform string `json:"platform"` // GOOS and GOARCH at build-time DBSchema int `json:"dbSchema"` }
func ReadBuildInfo ¶
func ReadBuildInfo() BuildInfo
type Config ¶
type Config struct { ConfigPath string `yaml:"config,omitempty" json:"config"` // the location where the application config was read from (either from -c or discovered while loading) Dev Development `yaml:"dev" json:"dev" mapstructure:"dev"` Log Logging `yaml:"log" json:"log" mapstructure:"log"` // all logging-related options DisableLoadFromDisk bool `yaml:"-" json:"-" mapstructure:"-"` DryRun bool `yaml:"-" json:"-" mapstructure:"dry-run"` }
type Development ¶
type Logging ¶
type Logging struct { Quiet bool `yaml:"quiet" json:"quiet" mapstructure:"quiet" description:"suppress logging output"` // -q, indicates to not show any status output to stderr Verbosity int `yaml:"-" json:"-" mapstructure:"verbosity"` // -v or -vv , controlling which UI (ETUI vs logging) and what the log level should be Level logger.Level `yaml:"level" json:"level" mapstructure:"level" description:"error, warn, info, debug, trace"` // the log level string hint FileLocation string `yaml:"file" json:"file" mapstructure:"file" description:"file to write all loge entries to"` // the file path to write logs to }
Logging contains all logging-related configuration options available to the user via the application config.
Click to show internal directories.
Click to hide internal directories.