package
Version:
v0.3.0
Opens a new window with list of versions in this module.
Published: Mar 30, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type AccessConfig struct {
ServiceName string `env:"SERVICE_NAME"`
SystemNamespace string `env:"SYSTEM_NAMESPACE"`
WebhookAddress string `env:"WEBHOOK_ADDRESS"`
}
type LogConfig struct {
Level string `env:"LOG_LEVEL" envDefault:"info"`
Path string `env:"LOG_PATH" envDefault:"stderr"`
}
type ServerConfig struct {
Port int `env:"SERVER_PORT" envDefault:"8080"`
Debug int `env:"SERVER_DEBUG"`
}
type TraceConfig struct {
Enable bool `env:"TRACE_ENABLE"`
JaegerUrl string `env:"TRACE_JAEGER_URL"`
SampleType string `env:"TRACE_SAMPLE_TYPE"`
SampleParam float64 `env:"TRACE_SAMPLE_PARAM"`
SampleServerURL string `env:"TRACE_SAMPLE_SERVER_URL"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.