28 lines
516 B
Go
28 lines
516 B
Go
|
package config
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
|
||
|
"github.com/zeromicro/go-zero/zrpc"
|
||
|
)
|
||
|
|
||
|
type Config struct {
|
||
|
zrpc.RpcServerConf
|
||
|
|
||
|
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
|
||
|
}
|
||
|
}
|