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 Service Service Tracing *Tracing `ocisConfig:"tracing"` Log *Log `ocisConfig:"log"` Debug Debug `ocisConfig:"debug"` IDM Settings `ocisConfig:"idm"` Context context.Context }
Config combines all available configuration parts.
func DefaultConfig ¶
func DefaultConfig() *Config
type Debug ¶
type Debug struct { Addr string `ocisConfig:"addr" env:"IDM_DEBUG_ADDR"` Token string `ocisConfig:"token" env:"IDM_DEBUG_TOKEN"` Pprof bool `ocisConfig:"pprof" env:"IDM_DEBUG_PPROF"` Zpages bool `ocisConfig:"zpages" env:"IDM_DEBUG_ZPAGES"` }
Debug defines the available debug configuration.
type Log ¶
type Log struct { Level string `mapstructure:"level" env:"OCIS_LOG_LEVEL;IDM_LOG_LEVEL"` Pretty bool `mapstructure:"pretty" env:"OCIS_LOG_PRETTY;IDM_LOG_PRETTY"` Color bool `mapstructure:"color" env:"OCIS_LOG_COLOR;IDM_LOG_COLOR"` File string `mapstructure:"file" env:"OCIS_LOG_FILE;IDM_LOG_FILE"` }
Log defines the available log configuration.
type Service ¶
type Service struct {
Name string
}
Service defines the available service configuration.
type Settings ¶
type Settings struct { LDAPSAddr string `ocisConfig:"ldaps_addr" env:"IDM_LDAPS_ADDR"` Cert string `ocisConfig:"cert" env:"IDM_LDAPS_CERT"` Key string `ocisConfig:"cert" env:"IDM_LDAPS_KEY"` DatabasePath string `ocisConfig:"database" env:"IDM_DATABASE_PATH"` AdminPassword string `ocisConfig:"admin_password" env:"IDM_ADMIN_PASSWORD"` }
type Tracing ¶
type Tracing struct { Enabled bool `ocisConfig:"enabled" env:"OCIS_TRACING_ENABLED;IDM_TRACING_ENABLED"` Type string `ocisConfig:"type" env:"OCIS_TRACING_TYPE;IDM_TRACING_TYPE"` Endpoint string `ocisConfig:"endpoint" env:"OCIS_TRACING_ENDPOINT;IDM_TRACING_ENDPOINT"` Collector string `ocisConfig:"collector" env:"OCIS_TRACING_COLLECTOR;IDM_TRACING_COLLECTOR"` }
Tracing defines the available tracing configuration.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.