app-cloudep-product-service/internal/config/config.go

33 lines
925 B
Go
Raw Normal View History

2025-03-12 14:05:38 +00:00
package config
2025-04-08 00:51:58 +00:00
import (
"github.com/zeromicro/go-zero/core/stores/cache"
"github.com/zeromicro/go-zero/zrpc"
"time"
)
2025-03-12 14:05:38 +00:00
type Config struct {
zrpc.RpcServerConf
2025-04-08 00:51:58 +00:00
// Redis Cluster
Cache cache.CacheConf
CacheExpireTime time.Duration
CacheWithNotFoundExpiry time.Duration
Mongo struct {
Schema string
User string
Password string
Host string
Port string
Database string
ReplicaName string
MaxStaleness time.Duration
MaxPoolSize uint64
MinPoolSize uint64
MaxConnIdleTime time.Duration
Compressors []string
EnableStandardReadWriteSplitMode bool
ConnectTimeoutMs int64
}
2025-03-12 14:05:38 +00:00
}