This commit is contained in:
Livio Amstutz
2020-03-25 10:41:17 +01:00
parent 6bf96ecbd7
commit 1aaf721d92
5 changed files with 4 additions and 15 deletions

View File

@@ -3,14 +3,12 @@ package grpc
type Config struct {
ServerPort string
GatewayPort string
SearchLimit int
CustomHeaders []string
}
func (c *Config) ToServerConfig() *ServerConfig {
return &ServerConfig{
Port: c.ServerPort,
SearchLimit: c.SearchLimit,
Port: c.ServerPort,
}
}
@@ -23,8 +21,7 @@ func (c *Config) ToGatewayConfig() *GatewayConfig {
}
type ServerConfig struct {
Port string
SearchLimit int
Port string
}
type GatewayConfig struct {