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:"-"` Log *Log `yaml:"log"` Debug Debug `yaml:"debug"` Nats Nats `ociConfig:"nats"` Context context.Context `yaml:"-"` }
Config combines all available configuration parts.
type Debug ¶
type Debug struct { Addr string `yaml:"addr" env:"NATS_DEBUG_ADDR"` Token string `yaml:"token" env:"NATS_DEBUG_TOKEN"` Pprof bool `yaml:"pprof" env:"NATS_DEBUG_PPROF"` Zpages bool `yaml:"zpages" env:"NATS_DEBUG_ZPAGES"` }
Debug defines the available debug configuration.
type Log ¶
type Log struct { Level string `mapstructure:"level" env:"OCIS_LOG_LEVEL;NATS_LOG_LEVEL"` Pretty bool `mapstructure:"pretty" env:"OCIS_LOG_PRETTY;NATS_LOG_PRETTY"` Color bool `mapstructure:"color" env:"OCIS_LOG_COLOR;NATS_LOG_COLOR"` File string `mapstructure:"file" env:"OCIS_LOG_FILE;NATS_LOG_FILE"` }
Log defines the available log configuration.
Click to show internal directories.
Click to hide internal directories.