|
|
@ -18,7 +18,7 @@ type (
|
|
|
|
PrivateKeys []PrivateKeyConf
|
|
|
|
PrivateKeys []PrivateKeyConf
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// why not name it as Conf, because we need to consider usage like:
|
|
|
|
// Why not name it as Conf, because we need to consider usage like:
|
|
|
|
// type Config struct {
|
|
|
|
// type Config struct {
|
|
|
|
// zrpc.RpcConf
|
|
|
|
// zrpc.RpcConf
|
|
|
|
// rest.RestConf
|
|
|
|
// rest.RestConf
|
|
|
@ -28,6 +28,8 @@ type (
|
|
|
|
service.ServiceConf
|
|
|
|
service.ServiceConf
|
|
|
|
Host string `json:",default=0.0.0.0"`
|
|
|
|
Host string `json:",default=0.0.0.0"`
|
|
|
|
Port int
|
|
|
|
Port int
|
|
|
|
|
|
|
|
CertFile string `json:",optional"`
|
|
|
|
|
|
|
|
KeyFile string `json:",optional"`
|
|
|
|
Verbose bool `json:",optional"`
|
|
|
|
Verbose bool `json:",optional"`
|
|
|
|
MaxConns int `json:",default=10000"`
|
|
|
|
MaxConns int `json:",default=10000"`
|
|
|
|
MaxBytes int64 `json:",default=1048576,range=[0:8388608]"`
|
|
|
|
MaxBytes int64 `json:",default=1048576,range=[0:8388608]"`
|
|
|
|