Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DBConfiguration ¶
type DBConfiguration struct { Username string `yaml:"mysql.username"` Password string `yaml:"mysql.password"` Host string `yaml:"mysql.host"` Schema string `yaml:"mysql.schema"` Driver string `yaml:"mysql.driver"` Automigrate bool `yaml:"mysql.automigrate"` Logger bool `yaml:"mysql.logger"` Namespace string }
DBConfiguration struct
type ELK ¶
type ELK struct { URLs []string `yaml:"elk.urls"` Username string `yaml:"elk.username"` Password string `yaml:"elk.password"` HealthCheckTime time.Duration `yaml:"elk.health_check"` }
ELK , elasticsearch - kibana - logstash
type GlobalConfiguration ¶
type GlobalConfiguration struct { Environment string `yaml:"environment"` GRPC struct { Host string `yaml:"grpc.host"` Port string `yaml:"grpc.port"` Endpoint string `yaml:"grpc.endpoint"` } HTTP struct { Host string `yaml:"http.host"` Port string `yaml:"http.port"` Endpoint string `yaml:"http.endpoint"` } DEBUG struct { Host string `yaml:"debug.host"` Port string `yaml:"debug.port"` Endpoint string `yaml:"debug.endpoint"` } Redis RedisConfiguration MYSQL DBConfiguration Vault VaultConfiguration MultiInstanceMode bool `yaml:"multiInstanceMode"` Log LoggingConfig Service Service Jaeger Jaeger Kafka Kafka JWT JWT ELK ELK }
GlobalConfiguration holds all the global configuration for gocommerce
var GlobalConfigs GlobalConfiguration
GlobalConfigs var
type Jaeger ¶
type Jaeger struct { HostPort string `yaml:"jaeger.hostPort"` LogSpans bool `yaml:"jaeger.logSpans"` }
Jaeger tracer
type Kafka ¶
type Kafka struct { Username string `yaml:"kafka.username"` Password string `yaml:"kafka.password"` Brokers []string `yaml:"kafka.brokers"` Version string `yaml:"kafka.version"` Group string `yaml:"kafka.group"` Assignor string `yaml:"kafka.assignor"` Oldest bool `yaml:"kafka.oldest"` Verbose bool `yaml:"kafka.verbose"` Topics Topic `yaml:"kafka.topics"` Auth bool `yaml:"kafka.auth"` Consumer bool `yaml:"kafka.consumer"` Producer bool `yaml:"kafka.producer"` }
Kafka struct
type LoggingConfig ¶
type LoggingConfig struct { DisableColors bool `json:"disable_colors" yaml:"log.disableColors"` QuoteEmptyFields bool `json:"quote_empty_fields" yaml:"log.quoteEmptyFields"` }
LoggingConfig struct
type RedisConfiguration ¶
type RedisConfiguration struct { Username string `yaml:"redis.username"` Password string `yaml:"redis.password"` DB int `yaml:"redis.db"` Host string `yaml:"redis.host"` Logger bool `yaml:"redis.logger"` }
RedisConfiguration struct
type VaultConfiguration ¶
type VaultConfiguration struct { Address string `yaml:"vault.address"` Token string `yaml:"vault.token"` }
VaultConfiguration struct
Click to show internal directories.
Click to hide internal directories.