mirror of
https://github.com/zitadel/zitadel.git
synced 2025-10-28 07:06:25 +00:00
fix configs
This commit is contained in:
@@ -2,6 +2,8 @@ package api
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
grpc_util "github.com/caos/zitadel/internal/api/grpc"
|
||||
"github.com/caos/zitadel/internal/api/grpc/server"
|
||||
"github.com/caos/zitadel/pkg/auth/api/grpc"
|
||||
)
|
||||
@@ -12,14 +14,13 @@ type API struct {
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
GRPCServer grpc.Config
|
||||
Gateway grpc.GatewayConfig
|
||||
GRPC grpc_util.Config
|
||||
}
|
||||
|
||||
func Start(ctx context.Context, conf *Config) error {
|
||||
api := &API{
|
||||
grpcServer: *grpc.StartServer(conf.GRPCServer),
|
||||
gateway: *grpc.StartGateway(conf.Gateway),
|
||||
grpcServer: *grpc.StartServer(conf.GRPC.ToServerConfig()),
|
||||
gateway: *grpc.StartGateway(conf.GRPC.ToGatewayConfig()),
|
||||
}
|
||||
server.StartServer(ctx, &api.grpcServer)
|
||||
server.StartGateway(ctx, &api.gateway)
|
||||
|
||||
Reference in New Issue
Block a user