12345678910111213141516171819202122232425262728293031 |
- package config
- import (
- "github.com/zeromicro/go-zero/zrpc"
- )
- type Config struct {
- zrpc.RpcServerConf
- DataSource *mysqlConfig // 手动代码
- Mysql string
- Redis *RedisConfig
- SurvivalTime int
- SaveConcurrency int // 消息保存并发数
- }
- type RedisConfig struct {
- Host string
- Addr string
- Modules string
- }
- type mysqlConfig struct {
- DbName string
- Address string
- UserName string
- PassWord string
- MaxOpenConns int
- MaxIdleConns int
- }
- var ConfigJson Config
|