mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 18:07:31 +00:00
remove pointers on configs
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user