mirror of
https://github.com/zitadel/zitadel.git
synced 2025-02-28 22:37:24 +00:00
remove pointers on configs
This commit is contained in:
parent
f280da5a76
commit
f5af4461ad
@ -16,15 +16,15 @@ import (
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
Mgmt *management.Config
|
||||
Auth *auth.Config
|
||||
Login *login.Config
|
||||
Admin *admin.Config
|
||||
Console *console.Config
|
||||
Mgmt management.Config
|
||||
Auth auth.Config
|
||||
Login login.Config
|
||||
Admin admin.Config
|
||||
Console console.Config
|
||||
|
||||
//Log //TODO: add
|
||||
//Tracing tracing.TracingConfig //TODO: add
|
||||
AuthZ *authz.Config
|
||||
AuthZ authz.Config
|
||||
}
|
||||
|
||||
func main() {
|
||||
|
@ -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,
|
||||
|
@ -14,6 +14,6 @@ type Config struct {
|
||||
API *api.Config
|
||||
}
|
||||
|
||||
func Start(ctx context.Context, config *Config, authZ *auth.Config) error {
|
||||
func Start(ctx context.Context, config Config, authZ auth.Config) error {
|
||||
return errors.ThrowUnimplemented(nil, "ADMIN-n8vw5", "not implemented yet") //TODO: implement
|
||||
}
|
||||
|
@ -14,6 +14,6 @@ type Config struct {
|
||||
API *api.Config
|
||||
}
|
||||
|
||||
func Start(ctx context.Context, config *Config, authZ *auth.Config) error {
|
||||
func Start(ctx context.Context, config Config, authZ auth.Config) error {
|
||||
return errors.ThrowUnimplemented(nil, "AUTH-l7Hdx", "not implemented yet") //TODO: implement
|
||||
}
|
||||
|
@ -11,6 +11,6 @@ type Config struct {
|
||||
StaticDir string
|
||||
}
|
||||
|
||||
func Start(ctx context.Context, config *Config) error {
|
||||
func Start(ctx context.Context, config Config) error {
|
||||
return errors.ThrowUnimplemented(nil, "CONSO-4cT5D", "not implemented yet") //TODO: implement
|
||||
}
|
||||
|
@ -9,10 +9,10 @@ import (
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
App *app.Config
|
||||
API *api.Config
|
||||
App app.Config
|
||||
API api.Config
|
||||
}
|
||||
|
||||
func Start(ctx context.Context, config *Config) error {
|
||||
func Start(ctx context.Context, config Config) error {
|
||||
return errors.ThrowUnimplemented(nil, "LOGIN-3fwvD", "not implemented yet") //TODO: implement
|
||||
}
|
||||
|
@ -3,5 +3,5 @@ package api
|
||||
import "github.com/caos/zitadel/internal/api/grpc"
|
||||
|
||||
type Config struct {
|
||||
GRPC *grpc.Config
|
||||
GRPC grpc.Config
|
||||
}
|
||||
|
@ -10,10 +10,10 @@ import (
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
App *app.Config
|
||||
API *api.Config
|
||||
App app.Config
|
||||
API api.Config
|
||||
}
|
||||
|
||||
func Start(ctx context.Context, config *Config, authZ *auth.Config) error {
|
||||
func Start(ctx context.Context, config Config, authZ auth.Config) error {
|
||||
return errors.ThrowUnimplemented(nil, "MANAG-h3k3x", "not implemented yet") //TODO: implement
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user