Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ENV_DEBUG = "debug" ENV_PRODUCTION = "production" )
Functions ¶
This section is empty.
Types ¶
type BrokerConfig ¶ added in v0.0.3
type Config ¶
type Config struct { Environment string //ServerName string //服务名称--4-11改。通过app启动设置 ServerPort string //服务端口 //ApiPort string //api端口 Timezome string //时区设置 Mysql *MysqlConfig Redis *RedisConfig MongoDb *MongoDBConfig FileServer *FileServerConfig Log *LogConfig Broker *BrokerConfig Registry *Registry }
公共配置模板
type FileServerConfig ¶
文件服务器配置
type MongoDBConfig ¶
type MongoDBConfig struct { Host string //地址 Port string //端口 User string //账户 Password string // Monitor bool //监控 DbName string //库名 }
Mongo
type MysqlConfig ¶
type MysqlConfig struct { Name string //数据库名字 Host string User string Port string Password string Debug bool //是否开启调试 MaxIdle int MaxOpen int TablePrefix string }
Mysql
type RedisConfig ¶
redis
Click to show internal directories.
Click to hide internal directories.