Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Server ServerConfig `mapstructure:"server"` Database DatabaseConfig `mapstructure:"database"` Kafka KafkaConfig `mapstructure:"kafka"` Logger LoggerConfig `mapstructure:"logger"` Jaeger JaegerConfig `mapstructure:"jaeger"` }
type DatabaseConfig ¶
type DatabaseConfig struct { Adapter string `mapstructure:"adapter"` Host string `mapstructure:"host"` Username string `mapstructure:"username"` Db string `mapstructure:"db"` Password string `mapstructure:"password"` Port int `mapstructure:"port"` MaxConns int `mapstructure:"maxConns"` MaxLiftimeConns int `mapstructure:"maxLiftimeConns"` }
type JaegerConfig ¶
type KafkaConfig ¶
type LoggerConfig ¶
type LoggerConfig struct { Development bool `mapstructure:"development"` DisableCaller bool `mapstructure:"disableCaller"` DisableStacktrace bool `mapstructure:"disableStacktrace"` Encoding string `mapstructure:"encoding"` Level string `mapstructure:"level"` Filename string `mapstructure:"filename"` FileMaxSize int `mapstructure:"fileMaxSize"` FileMaxAge int `mapstructure:"fileMaxAge"` FileMaxBackups int `mapstructure:"fileMaxBackups"` FileIsCompress bool `mapstructure:"fileIsCompress"` }
type ServerConfig ¶
type ServerConfig struct { Host string `mapstructure:"host"` Port string `mapstructure:"port"` GrpcHost string `mapstructure:"grpcHost"` GrpcPort string `mapstructure:"grpcPort"` Debug bool `mapstructure:"debug"` ReadTimeout time.Duration `mapstructure:"readTimeout"` WriteTimeout time.Duration `mapstructure:"writeTimeout"` ContextTimeout time.Duration `mapstructure:"contextTimeout"` Timezone string `mapstructure:"timezone"` }
Click to show internal directories.
Click to hide internal directories.