12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- package config
- import (
- "github.com/zeromicro/go-zero/rest"
- "github.com/zeromicro/go-zero/zrpc"
- "bp.jydev.jianyu360.cn/BaseService/jyMicroservices/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
- MobileIndexHotKeyLimit int64
- MobileIndexHotKeyUnLogin []string
- MobileIndexHotKey []string
- }
- type Db struct {
- Mongo entity.Mongo `json:"mongo"`
- Redis entity.RedisStuct `json:"redis"`
- }
- type Routes struct {
- ExcludeRoute []string
- }
- type SaveLogConfig struct {
- Name string // 日志名称
- CollName string // 保存的coll
- MgoSaveCacheSize int // 缓存通道大小
- SPSize int // 数据库并发数据
- BulkSize int // 每批的数量
- TimeAfter int // 定时保存 毫秒
- Timeout int // 超时丢弃毫秒
- }
|