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 {
App map[interface{}]interface{} `yaml:"app"`
Env string `yaml:"env"`
Version string `yaml:"version"`
HTTPServer HTTPServerConfig `yaml:"http-server,omitempty" mapstructure:"http-server"`
Logger Logger `yaml:"logger"`
Jaeger Jaeger `yaml:"jaeger"`
Metrics Metrics `yaml:"metrics"`
Docs Docs
KafkaConsumer KafkaConsumer `yaml:"kafkaConsumer"`
KafkaProducer KafkaProducer `yaml:"kafkaConsumer"`
RabbitMQ RabbitMQConfig `yaml:"rabbitmq,omitempty"`
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"`
NotificationSmtp Smtp `yaml:"NotificationSmtp,omitempty"`
}
App config struct
type HTTPServerConfig ¶
type HTTPServerConfig struct {
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 KafkaConsumer ¶ added in v1.2.0
type KafkaProducer ¶ added in v1.2.0
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
type RabbitMQConfig ¶ added in v1.1.0
type RedisConfig ¶
type RedisConfig struct {
RedisAddr string `yaml:"Host"`
RedisPassword string `yaml:"RedisPassword"`
MaxRetries int `yaml:"MaxRetries"`
User string `yaml:"User"`
DB int `yaml:"DbId"`
DialTimeout int `yaml:"DialTimeout"` // таймаут для установки новых соединений
Timeout int `yaml:"Timeout"` // таймаут для чтения и записи
}
Redis config
Click to show internal directories.
Click to hide internal directories.