feat grpc模块
This commit is contained in:
@@ -53,11 +53,7 @@ type RedisConfig struct {
|
||||
}
|
||||
|
||||
type ServeConfig struct {
|
||||
Grpc *struct {
|
||||
Address string `yaml:"address"`
|
||||
Port int32 `yaml:"port"`
|
||||
TTL int64 `yaml:"ttl"`
|
||||
} `yaml:"grpc"`
|
||||
Grpc *GrpcConfig `yaml:"grpc"`
|
||||
Socket *struct {
|
||||
Web *AddressConfig `yaml:"web"`
|
||||
Raw *AddressConfig `yaml:"raw"`
|
||||
@@ -65,6 +61,12 @@ type ServeConfig struct {
|
||||
Http *AddressConfig `yaml:"http"`
|
||||
}
|
||||
|
||||
type GrpcConfig struct {
|
||||
Address string `yaml:"address"`
|
||||
Port int32 `yaml:"port"`
|
||||
TTL int64 `yaml:"ttl"`
|
||||
}
|
||||
|
||||
type AddressConfig struct {
|
||||
Address string `yaml:"address"`
|
||||
Port int32 `yaml:"port"`
|
||||
|
||||
Reference in New Issue
Block a user