Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AWS ¶
type AWS struct {
Endpoint string
AccessKey string
SecretKey string
UseSSL bool
MinioEndpoint string `yaml:"minio-endpoint,omitempty"`
}
AWS S3
type Config ¶
type Config struct {
Logger Logger `yaml:"logger"`
Jaeger Jaeger `yaml:"jaeger"`
Metrics Metrics `yaml:"metrics"`
Env string `yaml:"env"`
App map[interface{}]interface{} `yaml:"app"`
HTTPServer HTTPServerConfig `yaml:"http-server,omitempty" mapstructure:"http-server"`
Postgres PostgresConfig `yaml:"postgres,omitempty"`
Redis RedisConfig `yaml:"redis,omitempty"`
MongoDB MongoDB `yaml:"mongodb,omitempty"`
AWS AWS `yaml:"aws,omitempty"`
Cookie Cookie `yaml:"cookie,omitempty"`
Session Session `yaml:"session,omitempty"`
}
App config struct
type HTTPServerConfig ¶
type HTTPServerConfig struct {
AppVersion string
Port string
PprofPort string
JwtSecretKey string
CookieName string
ReadTimeout time.Duration
WriteTimeout time.Duration
SSL bool
CtxDefaultTimeout time.Duration
CSRF bool
Debug bool
}
HTTP Server config struct
type Logger ¶
type Logger struct {
Development bool
DisableCaller bool
DisableStacktrace bool
Encoding string
Level string
}
Logger config
type PostgresConfig ¶
type PostgresConfig struct {
PostgresqlHost string
PostgresqlPort string
PostgresqlUser string
PostgresqlPassword string
PostgresqlDbname string
PostgresqlSSLMode bool
PgDriver string
}
Postgresql config
Click to show internal directories.
Click to hide internal directories.