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

34 lines
925 B
Go
Raw Permalink Normal View History

2025-03-12 14:05:38 +00:00
package config
2025-04-08 00:51:58 +00:00
import (
2025-04-10 07:59:30 +00:00
"time"
2025-04-08 00:51:58 +00:00
"github.com/zeromicro/go-zero/core/stores/cache"
"github.com/zeromicro/go-zero/zrpc"
)
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
2025-04-10 07:59:30 +00:00
2025-04-08 00:51:58 +00:00
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
}