Documentation ¶
Index ¶
- Variables
- func FullVersion() string
- func NewUserAgentTransport(ua string, inner http.RoundTripper) *userAgentTransport
- func RecoverWrapper(input any) any
- func ReportEatenCat()
- func Resolver() *net.Resolver
- func Transport() http.RoundTripper
- type ExtConfig
- func (e *ExtConfig) BuildLogger() *zap.Logger
- func (e *ExtConfig) BuildLoggerWithLevel(l zapcore.Level) *zap.Logger
- func (e *ExtConfig) Dirs() *ExtConfigDirs
- func (e *ExtConfig) EtcdClient() *storage.Client
- func (e *ExtConfig) GetIP() (net.IP, error)
- func (e *ExtConfig) Listen(port int32) string
- func (e *ExtConfig) Logger() *zap.Logger
- type ExtConfigDirs
Constants ¶
This section is empty.
Variables ¶
View Source
var BuildHash = ""
View Source
var Version = ""
Set via ldflags
Functions ¶
func FullVersion ¶
func FullVersion() string
func NewUserAgentTransport ¶
func NewUserAgentTransport(ua string, inner http.RoundTripper) *userAgentTransport
func RecoverWrapper ¶
func ReportEatenCat ¶
func ReportEatenCat()
func Transport ¶
func Transport() http.RoundTripper
Types ¶
type ExtConfig ¶
type ExtConfig struct { Debug bool `env:"DEBUG,default=false"` LogLevel string `env:"LOG_LEVEL,default=info"` DataPath string `env:"DATA_PATH,default=./data"` Etcd struct { Prefix string `env:"ETCD_PREFIX,default=/gravity"` Endpoint string `env:"ETCD_ENDPOINT,default=localhost:2379"` JoinCluster string `env:"ETCD_JOIN_CLUSTER"` } BootstrapRoles string `env:"BOOTSTRAP_ROLES,default=dns;dhcp;api;etcd;discovery;backup;monitoring;debug;tsdb"` Instance struct { Identifier string `env:"INSTANCE_IDENTIFIER"` IP string `env:"INSTANCE_IP"` Listen string `env:"INSTANCE_LISTEN"` } ListenOnlyMode bool `env:"LISTEN_ONLY,default=false"` FallbackDNS string `env:"FALLBACK_DNS,default=1.1.1.1:53"` // contains filtered or unexported fields }
func (*ExtConfig) BuildLogger ¶
func (*ExtConfig) BuildLoggerWithLevel ¶
func (*ExtConfig) Dirs ¶
func (e *ExtConfig) Dirs() *ExtConfigDirs
func (*ExtConfig) EtcdClient ¶
type ExtConfigDirs ¶
Click to show internal directories.
Click to hide internal directories.