Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AmqpConfig ¶
type AppConfig ¶
type AppConfig struct { Meta *MetaConfig `yaml:"meta"` MySQL *MySQLConfig `yaml:"mysql"` Redis *RedisConfig `yaml:"redis"` Amqp *AmqpConfig `yaml:"amqp"` Email *EmailConfig `yaml:"email"` Jwt *JwtConfig `yaml:"jwt"` Casbin *CasbinConfig `yaml:"casbin"` }
type CasbinConfig ¶
type CasbinConfig struct {
ConfigPath string `yaml:"conf-path"`
}
type EmailConfig ¶
type MetaConfig ¶
type MySQLConfig ¶
type MySQLConfig struct { Host string `yaml:"host"` Port int32 `yaml:"port"` Name string `yaml:"name"` Charset string `yaml:"charset"` User string `yaml:"user"` Password string `yaml:"password"` MaxIdle int32 `yaml:"max-idle"` MaxActive int32 `yaml:"max-active"` MaxLifetime int32 `yaml:"max-lifetime"` }
type RedisConfig ¶
type RedisConfig struct { Addr string `yaml:"addr"` Db int `yaml:"db"` Password string `yaml:"password"` ConnectTimeout int32 `yaml:"connect-timeout"` ReadTimeout int32 `yaml:"read-timeout"` WriteTimeout int32 `yaml:"write-timeout"` MaxIdle int32 `yaml:"max-idle"` MaxActive int32 `yaml:"max-active"` MaxLifetime int32 `yaml:"max-lifetime"` IdleTimeout int32 `yaml:"idle-timeout"` }
Click to show internal directories.
Click to hide internal directories.