Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Config string DB DBConfig Kafka KafkaConfig Port string LogFile string LogConfig lumber.LoggingConfig Env string Verbose bool Tracing TracingConfig }
Config the application's configuration
var GlobalConfig *Config
GlobalConfig stores the config instance for global use
type ConfigWrapper ¶
type ConfigWrapper struct {
Config `json:"data"`
}
ConfigWrapper is a wrapper for the config
type DBConfig ¶
type DBConfig struct { Host string `json:"host"` Port string `json:"port"` User string `json:"user"` Password string `json:"password"` Name string `json:"name"` }
DBConfig providers the mysql db configuration.
type KafkaConfig ¶
KafkaConfig provides the kafka configuration.
type TracingConfig ¶
type TracingConfig struct { // OtelEndpoint for storing host name for otel collector OtelEndpoint string }
TracingConfig provides opentelemetry configurations
Click to show internal directories.
Click to hide internal directories.