Documentation ¶
Index ¶
- Variables
- func HandlerStreamInterceptor(interceptors *[]grpc.StreamServerInterceptor) grpc.StreamServerInterceptor
- func HandlerUnaryInterceptor(interceptors *[]grpc.UnaryServerInterceptor) grpc.UnaryServerInterceptor
- func New(ctx context.Context, opt ...Option) server.Server
- func NewWithServer(ctx context.Context, name string, s *grpc.Server, listen string) server.Server
- type Handler
- type IServer
- type Opener
- type Option
- type Options
- type Server
- func (s *Server) As(i interface{}) bool
- func (s *Server) Clone() interface{}
- func (s *Server) ID() string
- func (s *Server) Metadata() map[string]string
- func (s *Server) Name() string
- func (s *Server) RawServe(opts *server.ServeOptions) (ii []registry.Item, e error)
- func (s *Server) Stop() error
- func (s *Server) Type() server.Type
Constants ¶
This section is empty.
Variables ¶
View Source
var EndpointKey = endpointKey{}
Functions ¶
func HandlerStreamInterceptor ¶
func HandlerStreamInterceptor(interceptors *[]grpc.StreamServerInterceptor) grpc.StreamServerInterceptor
func HandlerUnaryInterceptor ¶
func HandlerUnaryInterceptor(interceptors *[]grpc.UnaryServerInterceptor) grpc.UnaryServerInterceptor
Types ¶
type Handler ¶
type Handler struct{}
func (*Handler) Check ¶
func (h *Handler) Check(ctx context.Context, req *grpc_health_v1.HealthCheckRequest) (*grpc_health_v1.HealthCheckResponse, error)
func (*Handler) Watch ¶
func (h *Handler) Watch(req *grpc_health_v1.HealthCheckRequest, w grpc_health_v1.Health_WatchServer) error
type IServer ¶
type IServer interface { RegisterService(sd *grpc.ServiceDesc, ss any) GetServiceInfo() map[string]grpc.ServiceInfo Serve(lis net.Listener) error Stop() GracefulStop() }
Click to show internal directories.
Click to hide internal directories.