Documentation ¶
Index ¶
Constants ¶
View Source
const (
HttpPort = "HTTP_PORT"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { AppVersion string `mapstructure:"APP_VERSION"` Env string `mapstructure:"ENV"` ServiceName string `mapstructure:"SERVICE_NAME"` ServiceMainPath string `mapstructure:"SERVICE_MAIN_PATH"` Server Server Logger Logger MongoDB MongoDB Kafka Kafka Http Http Redis Redis Sentry Sentry Lightstep Lightstep Postgres Postgres HTTPClient HTTPClient }
Config of application
type HTTPClient ¶ added in v0.4.2
type Lightstep ¶ added in v0.3.8
type Lightstep struct {
AccessToken string `mapstructure:"LIGHTSTEP_ACCESS_TOKEN"`
}
type Logger ¶
type Logger struct { DisableCaller bool `mapstructure:"LOGGER_DISABLE_CALLER"` DisableStacktrace bool `mapstructure:"LOGGER_DISABLE_STACKTRACE"` Encoding string `mapstructure:"LOGGER_ENCODING"` Level string `mapstructure:"LOGGER_LEVEL"` }
Logger config
Click to show internal directories.
Click to hide internal directories.