Documentation ¶
Index ¶
- func New(ctx context.Context, opt ...Option) server.Server
- func NewWithServer(ctx context.Context, s *grpc.Server, listen string) server.Server
- type Handler
- type Option
- type Options
- type Server
- func (s *Server) Address() []string
- func (s *Server) As(i interface{}) bool
- func (s *Server) Endpoints() []string
- func (s *Server) ID() string
- func (s *Server) Metadata() map[string]string
- func (s *Server) Name() string
- func (s *Server) Serve() error
- func (s *Server) Stop() error
- func (s *Server) Type() server.ServerType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶ added in v4.0.1
type Handler struct{}
func (*Handler) Check ¶ added in v4.0.1
func (h *Handler) Check(ctx context.Context, req *grpc_health_v1.HealthCheckRequest) (*grpc_health_v1.HealthCheckResponse, error)
func (*Handler) Watch ¶ added in v4.0.1
func (h *Handler) Watch(req *grpc_health_v1.HealthCheckRequest, w grpc_health_v1.Health_WatchServer) error
Click to show internal directories.
Click to hide internal directories.