package config import ( "github.com/zeromicro/go-zero/rest" "github.com/zeromicro/go-zero/zrpc" "jyBXCore/entity" ) type Config struct { rest.RestConf Webrpcport int64 Gateway struct { ServerCode string Etcd []string } Core zrpc.RpcClientConf MgoLogsName string MgoLogsCount int DetailMosaicTxt string SearchMosaic map[string]bool SearchLog 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 // 超时丢弃毫秒 }