Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CertConfig ¶
type CertConfig struct { CAFile string `` /* 194-byte string literal not displayed */ ServerCertFile string `` /* 188-byte string literal not displayed */ ServerKeyFile string `` /* 187-byte string literal not displayed */ ClientCertFile string `json:"client_cert_file" value:"" usage:"Client public key file(*.crt)" mapstructure:"client_cert_file"` ClientKeyFile string `json:"client_key_file" value:"" usage:"Client private key file(*.key)" mapstructure:"client_key_file" ` }
Server and client TLS config, can not be import with ClientCertOnlyConfig or ServerCertOnlyConfig
type ClientOnlyCertConfig ¶
type ClientOnlyCertConfig struct { CAFile string `` /* 162-byte string literal not displayed */ ClientCertFile string `json:"client_cert_file" value:"" usage:"Client public key file(*.crt)"` ClientKeyFile string `json:"client_key_file" value:"" usage:"Client private key file(*.key)"` }
Client TLS config, can not be import with CertConfig or ServerCertOnlyConfig
type FileConfig ¶
type FileConfig struct {
ConfigFile string `json:"file" short:"f" value:"" usage:"json file with configuration"`
}
Config file, if set it will cover all the flag value it contains
type LicenseServerConfig ¶
type LicenseServerConfig struct { LSAddress string `json:"ls_address" value:"" usage:"The license server address" mapstructure:"ls_address"` LSCAFile string `json:"ls_ca_file" value:"" usage:"CA file for connecting to license server" mapstructure:"ls_ca_file"` LSClientCertFile string `` /* 141-byte string literal not displayed */ LSClientKeyFile string `` /* 140-byte string literal not displayed */ }
License server config
type LocalConfig ¶
type LocalConfig struct {
LocalIP string `json:"local_ip" value:"" usage:"IP address of this host" mapstructure:"local_ip"`
}
Local info
type LogConfig ¶
type LogConfig struct { LogDir string `json:"log_dir" value:"./logs" usage:"If non-empty, write log files in this directory" mapstructure:"log_dir"` LogMaxSize uint64 `json:"log_max_size" value:"500" usage:"Max size (MB) per log file." mapstructure:"log_max_size"` LogMaxNum int `` /* 146-byte string literal not displayed */ ToStdErr bool `json:"logtostderr" value:"false" usage:"log to standard error instead of files" mapstructure:"logtostderr"` StdErrLevel int32 `json:"stderr_level" value:"0" usage:"logs to std error level, info=0, warning=1, error=2" mapstructure:"stderr_level"` AlsoToStdErr bool `json:"alsologtostderr" value:"false" usage:"log to standard error as well as files" mapstructure:"alsologtostderr"` Verbosity int32 `json:"v" value:"0" usage:"log level for V logs" mapstructure:"v"` StdErrThreshold string `json:"stderrthreshold" value:"2" usage:"logs at or above this threshold go to stderr" mapstructure:"stderrthreshold"` VModule string `json:"vmodule" value:"" usage:"comma-separated list of pattern=N settings for file-filtered logging" mapstructure:"vmodule"` TraceLocation string `json:"log_backtrace_at" value:"" usage:"when logging hits line file:N, emit a stack trace" mapstructure:"log_backtrace_at"` }
Log configuration
type MetricConfig ¶
type MetricConfig struct {
MetricPort uint `json:"metric_port" value:"8081" usage:"Port to listen on for metric" mapstructure:"metric_port" `
}
Metric info
type ProcessConfig ¶
type ProcessConfig struct {
PidDir string `json:"pid_dir" value:"./pid" usage:"The dir for pid file" mapstructure:"pid_dir"`
}
Process configuration
type ServerOnlyCertConfig ¶
type ServerOnlyCertConfig struct { CAFile string `` /* 162-byte string literal not displayed */ ServerCertFile string `` /* 156-byte string literal not displayed */ ServerKeyFile string `` /* 156-byte string literal not displayed */ }
Server TLS config, can not be import with ClientCertOnlyConfig or CertConfig
type ServiceConfig ¶
type ServiceConfig struct { Address string `json:"address" short:"a" value:"127.0.0.1" usage:"IP address to listen on for this service" mapstructure:"address"` Port uint `json:"port" short:"p" value:"8080" usage:"Port to listen on for this service" mapstructure:"port"` InsecureAddress string `` /* 131-byte string literal not displayed */ InsecurePort uint `json:"insecure_port" value:"8443" usage:"insecure port to listen on for this service" mapstructure:"insecure_port"` }
Service bind
Click to show internal directories.
Click to hide internal directories.