mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 03:57:32 +00:00
feat: merge master
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
package api
|
||||
|
||||
import "github.com/caos/zitadel/internal/api/grpc"
|
||||
|
||||
type Config struct {
|
||||
GRPC grpc.Config
|
||||
}
|
@@ -13,7 +13,7 @@ type Gateway struct {
|
||||
cutomHeaders []string
|
||||
}
|
||||
|
||||
func StartGateway(conf *grpc_util.GatewayConfig) *Gateway {
|
||||
func StartGateway(conf grpc_util.GatewayConfig) *Gateway {
|
||||
return &Gateway{
|
||||
grpcEndpoint: conf.GRPCEndpoint,
|
||||
port: conf.Port,
|
||||
|
@@ -20,7 +20,7 @@ type Server struct {
|
||||
searchLimit int
|
||||
}
|
||||
|
||||
func StartServer(conf *grpc_util.ServerConfig) *Server {
|
||||
func StartServer(conf grpc_util.ServerConfig) *Server {
|
||||
return &Server{
|
||||
port: conf.Port,
|
||||
}
|
||||
|
@@ -17,7 +17,7 @@ type Config struct {
|
||||
GRPC grpc_util.Config
|
||||
}
|
||||
|
||||
func Start(ctx context.Context, conf *Config) error {
|
||||
func Start(ctx context.Context, conf Config) error {
|
||||
api := &API{
|
||||
grpcServer: *grpc.StartServer(conf.GRPC.ToServerConfig()),
|
||||
gateway: *grpc.StartGateway(conf.GRPC.ToGatewayConfig()),
|
||||
|
@@ -1,7 +0,0 @@
|
||||
package api
|
||||
|
||||
import "github.com/caos/zitadel/internal/api/grpc"
|
||||
|
||||
type Config struct {
|
||||
GRPC grpc.Config
|
||||
}
|
@@ -15,7 +15,7 @@ type Gateway struct {
|
||||
cutomHeaders []string
|
||||
}
|
||||
|
||||
func StartGateway(conf *grpc_util.GatewayConfig) *Gateway {
|
||||
func StartGateway(conf grpc_util.GatewayConfig) *Gateway {
|
||||
return &Gateway{
|
||||
grpcEndpoint: conf.GRPCEndpoint,
|
||||
port: conf.Port,
|
||||
|
@@ -15,7 +15,7 @@ type Server struct {
|
||||
searchLimit int
|
||||
}
|
||||
|
||||
func StartServer(conf *grpc_util.ServerConfig) *Server {
|
||||
func StartServer(conf grpc_util.ServerConfig) *Server {
|
||||
return &Server{
|
||||
port: conf.Port,
|
||||
}
|
||||
|
@@ -1,7 +0,0 @@
|
||||
package api
|
||||
|
||||
import "github.com/caos/zitadel/internal/api/grpc"
|
||||
|
||||
type Config struct {
|
||||
GRPC grpc.Config
|
||||
}
|
@@ -13,7 +13,7 @@ type Gateway struct {
|
||||
cutomHeaders []string
|
||||
}
|
||||
|
||||
func StartGateway(conf *grpc_util.GatewayConfig) *Gateway {
|
||||
func StartGateway(conf grpc_util.GatewayConfig) *Gateway {
|
||||
return &Gateway{
|
||||
grpcEndpoint: conf.GRPCEndpoint,
|
||||
port: conf.Port,
|
||||
|
@@ -13,7 +13,7 @@ type Server struct {
|
||||
port string
|
||||
}
|
||||
|
||||
func StartServer(conf *grpc_util.ServerConfig) *Server {
|
||||
func StartServer(conf grpc_util.ServerConfig) *Server {
|
||||
return &Server{
|
||||
port: conf.Port,
|
||||
}
|
||||
|
Reference in New Issue
Block a user