package settings import ( "context" "net/http" "connectrpc.com/connect" "google.golang.org/protobuf/reflect/protoreflect" "github.com/zitadel/zitadel/internal/api/assets" "github.com/zitadel/zitadel/internal/api/authz" "github.com/zitadel/zitadel/internal/api/grpc/server" "github.com/zitadel/zitadel/internal/command" "github.com/zitadel/zitadel/internal/query" settings "github.com/zitadel/zitadel/pkg/grpc/settings/v2beta" "github.com/zitadel/zitadel/pkg/grpc/settings/v2beta/settingsconnect" ) var _ settingsconnect.SettingsServiceHandler = (*Server)(nil) type Server struct { command *command.Commands query *query.Queries assetsAPIDomain func(context.Context) string } type Config struct{} func CreateServer( command *command.Commands, query *query.Queries, ) *Server { return &Server{ command: command, query: query, assetsAPIDomain: assets.AssetAPI(), } } func (s *Server) RegisterConnectServer(interceptors ...connect.Interceptor) (string, http.Handler) { return settingsconnect.NewSettingsServiceHandler(s, connect.WithInterceptors(interceptors...)) } func (s *Server) FileDescriptor() protoreflect.FileDescriptor { return settings.File_zitadel_settings_v2beta_settings_service_proto } func (s *Server) AppName() string { return settings.SettingsService_ServiceDesc.ServiceName } func (s *Server) MethodPrefix() string { return settings.SettingsService_ServiceDesc.ServiceName } func (s *Server) AuthMethods() authz.MethodMapping { return settings.SettingsService_AuthMethods } func (s *Server) RegisterGateway() server.RegisterGatewayFunc { return settings.RegisterSettingsServiceHandler }