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

28 lines
516 B
Go
Raw Normal View History

2024-10-25 10:17:27 +00:00
package config
2024-10-25 16:42:58 +00:00
import (
"time"
"github.com/zeromicro/go-zero/zrpc"
)
2024-10-25 10:17:27 +00:00
type Config struct {
zrpc.RpcServerConf
2024-10-25 16:42: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
}
2024-10-25 10:17:27 +00:00
}