Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CertConfig ¶
type CertConfig struct { CAFile string `` /* 185-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"` }
CertConfig 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)"` }
ClientOnlyCertConfig Client TLS config, can not be import with CertConfig or ServerCertOnlyConfig
type Config ¶
type Config struct { Configmap map[string]string KeyList []string // contains filtered or unexported fields }
Config struct for configuration
func (*Config) InitConfig ¶
InitConfig init config by file path
type CustomCertConfig ¶
type CustomCertConfig struct { CAFile string `` /* 206-byte string literal not displayed */ ServerCertFile string `` /* 209-byte string literal not displayed */ ServerKeyFile string `` /* 208-byte string literal not displayed */ ServerKeyPwd string `` /* 136-byte string literal not displayed */ ClientCertFile string `` /* 155-byte string literal not displayed */ ClientKeyFile string `` /* 153-byte string literal not displayed */ ClientKeyPwd string `` /* 136-byte string literal not displayed */ }
type FileConfig ¶
type FileConfig struct {
ConfigFile string `json:"file" short:"f" value:"" usage:"json file with configuration"`
}
FileConfig 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 */ }
LicenseServerConfig License server config
type LocalConfig ¶
type LocalConfig struct { LocalIP string `json:"local_ip" value:"" usage:"IP address of this host" mapstructure:"local_ip"` LocalIPv6 string `json:"local_ipv6" value:"" usage:"IPv6 address of this host" mapstructure:"local_ipv6"` }
LocalConfig 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"` 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"` }
LogConfig Log configuration
type MetricConfig ¶
type MetricConfig struct {
MetricPort uint `json:"metric_port" value:"8081" usage:"Port to listen on for metric" mapstructure:"metric_port" `
}
MetricConfig Metric info
type ProcessConfig ¶
type ProcessConfig struct {
PidDir string `json:"pid_dir" value:"./pid" usage:"The dir for pid file" mapstructure:"pid_dir"`
}
ProcessConfig 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 */ }
ServerOnlyCertConfig 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"` IPv6Address string `json:"ipv6_address" value:"" usage:"IPv6 address to listen on for this service" mapstructure:"ipv6_address"` Port uint `json:"port" short:"p" value:"8080" usage:"Port to listen on for this service" mapstructure:"port"` InsecureAddress string `json:"insecure_address" value:"" usage:"insecure IP address to listen on for this service" mapstructure:"insecure_address"` InsecurePort uint `json:"insecure_port" value:"" usage:"insecure port to listen on for this service" mapstructure:"insecure_port"` ExternalIp string `json:"external_ip" value:"" usage:"external IP address to listen on for this service" mapstructure:"external_ip"` ExternalIPv6 string `json:"external_ipv6" value:"" usage:"external IPv6 address to listen on for this service" mapstructure:"external_ipv6"` ExternalPort uint `json:"external_port" value:"" usage:"external port to listen on for this service" mapstructure:"external_port"` }
ServiceConfig Service bind
Click to show internal directories.
Click to hide internal directories.