Documentation ¶
Index ¶
- func ErrorFormatStreamInterceptor(srv interface{}, stream grpc.ServerStream, info *grpc.StreamServerInfo, ...) error
- func ErrorFormatUnaryInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error)
- 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 Opener
- type Option
- type Options
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorFormatStreamInterceptor ¶ added in v4.0.7
func ErrorFormatStreamInterceptor(srv interface{}, stream grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error
func ErrorFormatUnaryInterceptor ¶ added in v4.0.7
func ErrorFormatUnaryInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
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.