Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APP ¶
type APP struct { RunMode string `yaml:"run-mode"` Pagesize int `yaml:"pagesize"` IdentityKey string `yaml:"identity-key"` LogPath string `yaml:"log-path"` }
APP 程序配置
type Conf ¶
type Conf struct { Server Server `yaml:"server"` Database Database `yaml:"database"` Redis Redis `yaml:"redis"` RabbitMQ RabbitMQ `yaml:"rabbitmq"` APP APP `yaml:"app"` }
Conf 配置结构体
var (
Config *Conf
)
Config 定义配置
type Database ¶
type Database struct { Type string `yaml:"type"` User string `yaml:"user"` Password string `yaml:"password"` Host string `yaml:"host"` Name string `yaml:"name"` TablePrefix string `yaml:"table-prefix"` }
Database 数据库配置结构体
type RabbitMQ ¶
type RabbitMQ struct { Addr string `yaml:"addr"` Port int `yaml:"port"` User string `yaml:"user"` Pass string `yaml:"pass"` }
RabbitMQ RabbitMQ配置结构体
Click to show internal directories.
Click to hide internal directories.