package config import ( "bp.jydev.jianyu360.cn/BaseService/jyMicroservices/jyBXSubscribe/entity" "github.com/zeromicro/go-zero/rest" "github.com/zeromicro/go-zero/zrpc" ) type Config struct { rest.RestConf AppId int64 Webrpcport int64 Gateway struct { ServerCode string Etcd []string } Subscribe zrpc.RpcClientConf MgoLogsName string MgoLogsCount int SubscribeUpdateLog SaveLogConfig } type Db struct { Mongo entity.Mongo `json:"mongo"` } type Routes struct { ExcludeRoute []string } type SaveLogConfig struct { Name string // 日志名称 CollName string // 保存的coll MgoSaveCacheSize int // 缓存通道大小 SPSize int // 数据库并发数据 BulkSize int // 每批的数量 TimeAfter int // 定时保存 毫秒 Timeout int // 超时丢弃毫秒 }