Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { *shared.Commons `yaml:"-"` Service Service `yaml:"-"` Tracing *Tracing `yaml:"tracing"` Log *Log `yaml:"log"` Debug Debug `yaml:"debug"` GRPC GRPC `yaml:"grpc"` Datapath string `yaml:"data_path" env:"STORE_DATA_PATH"` Context context.Context `yaml:"-"` }
Config combines all available configuration parts.
type Debug ¶
type Debug struct { Addr string `yaml:"addr" env:"STORE_DEBUG_ADDR"` Token string `yaml:"token" env:"STORE_DEBUG_TOKEN"` Pprof bool `yaml:"pprof" env:"STORE_DEBUG_PPROF"` Zpages bool `yaml:"zpages" env:"STORE_DEBUG_ZPAGES"` }
Debug defines the available debug configuration.
type Log ¶
type Log struct { Level string `mapstructure:"level" env:"OCIS_LOG_LEVEL;STORE_LOG_LEVEL"` Pretty bool `mapstructure:"pretty" env:"OCIS_LOG_PRETTY;STORE_LOG_PRETTY"` Color bool `mapstructure:"color" env:"OCIS_LOG_COLOR;STORE_LOG_COLOR"` File string `mapstructure:"file" env:"OCIS_LOG_FILE;STORE_LOG_FILE"` }
Log defines the available log configuration.
type Service ¶
type Service struct {
Name string `yaml:"-"`
}
Service defines the available service configuration.
type Tracing ¶
type Tracing struct { Enabled bool `yaml:"enabled" env:"OCIS_TRACING_ENABLED;STORE_TRACING_ENABLED"` Type string `yaml:"type" env:"OCIS_TRACING_TYPE;STORE_TRACING_TYPE"` Endpoint string `yaml:"endpoint" env:"OCIS_TRACING_ENDPOINT;STORE_TRACING_ENDPOINT"` Collector string `yaml:"collector" env:"OCIS_TRACING_COLLECTOR;STORE_TRACING_COLLECTOR"` }
Tracing defines the available tracing configuration.
Click to show internal directories.
Click to hide internal directories.