Versions in this module Expand all Collapse all v0 v0.1.0 Jun 2, 2025 Changes in this version + func NewConsulRegistrar(opts *genericoptions.ConsulOptions) registry.Registrar + func NewEtcdRegistrar(opts *genericoptions.EtcdOptions) registry.Registrar + func NewKratosLogger(id, name, version string) krtlog.Logger + func Serve(ctx context.Context, srv Server) error + type GRPCGatewayServer struct + func NewGRPCGatewayServer(httpOptions *genericoptions.HTTPOptions, ...) (*GRPCGatewayServer, error) + func (s *GRPCGatewayServer) GracefulStop(ctx context.Context) + func (s *GRPCGatewayServer) RunOrDie() + type GRPCServer struct + func NewGRPCServer(grpcOptions *genericoptions.GRPCOptions, tlsOptions *genericoptions.TLSOptions, ...) (*GRPCServer, error) + func (s *GRPCServer) GracefulStop(ctx context.Context) + func (s *GRPCServer) RunOrDie() + type HTTPServer struct + func NewHTTPServer(httpOptions *genericoptions.HTTPOptions, tlsOptions *genericoptions.TLSOptions, ...) *HTTPServer + func (s *HTTPServer) GracefulStop(ctx context.Context) + func (s *HTTPServer) RunOrDie() + type KratosAppConfig struct + ID string + Metadata map[string]string + Name string + Registrar registry.Registrar + Version string + type KratosServer struct + func NewKratosServer(cfg KratosAppConfig, servers ...transport.Server) (*KratosServer, error) + func (s *KratosServer) GracefulStop(ctx context.Context) + func (s *KratosServer) RunOrDie() + type Server interface + GracefulStop func(ctx context.Context) + RunOrDie func()