remove pointers on configs

This commit is contained in:
Livio Amstutz
2020-03-27 13:57:16 +01:00
parent f280da5a76
commit f5af4461ad
8 changed files with 20 additions and 20 deletions

View File

@@ -6,14 +6,14 @@ type Config struct {
CustomHeaders []string
}
func (c *Config) ToServerConfig() *ServerConfig {
return &ServerConfig{
func (c Config) ToServerConfig() ServerConfig {
return ServerConfig{
Port: c.ServerPort,
}
}
func (c *Config) ToGatewayConfig() *GatewayConfig {
return &GatewayConfig{
func (c Config) ToGatewayConfig() GatewayConfig {
return GatewayConfig{
Port: c.GatewayPort,
GRPCEndpoint: c.ServerPort,
CustomHeaders: c.CustomHeaders,