Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Version string `yaml:"version"` ServerConfig ServerConfigStruct `yaml:"server"` LoggerConfig LoggerConfigStruct `yaml:"logger"` DBConfig DBConfigStruct `yaml:"db"` RedisConfig RedisConfigStruct `yaml:"redis"` UserServiceConfig UserServiceConfigStruct `yaml:"user_service"` RabbitMQConfig RabbitMQConfigStruct `yaml:"rabbitmq"` OssConfig OssConfigStruct `yaml:"oss"` }
type DBConfigStruct ¶ added in v0.1.3
type DBConfigStruct struct { Host string `yaml:"host"` Port string `yaml:"port"` Username string `yaml:"username"` Password string `yaml:"password"` DbName string `yaml:"database"` MaxIdleConns int `yaml:"max_idle_conns"` MaxOpenConns int `yaml:"max_open_conns"` ConnMaxLifetime int `yaml:"conn_max_lifetime"` }
type LoggerConfigStruct ¶
LoggerConfigStruct logger配置
type OssConfigStruct ¶ added in v0.1.20
type RSAConfigStruct ¶ added in v0.1.3
type RabbitMQConfigStruct ¶ added in v0.1.20
type RedisConfigStruct ¶ added in v0.1.13
type ServerConfigStruct ¶
type ServerConfigStruct struct {
Port int `yaml:"port"`
}
ServerConfigStruct server配置
type UserServiceConfigStruct ¶ added in v0.1.16
Click to show internal directories.
Click to hide internal directories.