Documentation ¶
Index ¶
- type HealthServiceServer
- func (s *HealthServiceServer) Check(ctx context.Context, request *health_v1.HealthCheckRequest) (*health_v1.HealthCheckResponse, error)
- func (s *HealthServiceServer) RegisterGrpc(sr grpc.ServiceRegistrar) error
- func (s *HealthServiceServer) RegisterGrpcProxy(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func (s *HealthServiceServer) Watch(request *health_v1.HealthCheckRequest, stream health_v1.Health_WatchServer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthServiceServer ¶
type HealthServiceServer struct { // Required to have revese compatability health_v1.UnimplementedHealthServer // contains filtered or unexported fields }
HealthServiceServer - service for checking service health. Created bases on https://github.com/grpc/grpc/blob/master/doc/health-checking.md
func New ¶ added in v0.3.0
func New(hc health.Checker, wup time.Duration) *HealthServiceServer
New - creates new instance of HealthServiceServer
func (*HealthServiceServer) Check ¶
func (s *HealthServiceServer) Check(ctx context.Context, request *health_v1.HealthCheckRequest) (*health_v1.HealthCheckResponse, error)
func (*HealthServiceServer) RegisterGrpc ¶ added in v0.3.0
func (s *HealthServiceServer) RegisterGrpc(sr grpc.ServiceRegistrar) error
RegisterGrpc - HealthServiceServer's method to registrate gRPC service server handlers
func (*HealthServiceServer) RegisterGrpcProxy ¶ added in v0.3.0
func (s *HealthServiceServer) RegisterGrpcProxy(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterGrpcProxy - HealthServiceServer's method to registrate gRPC proxy service server handlers
func (*HealthServiceServer) Watch ¶
func (s *HealthServiceServer) Watch(request *health_v1.HealthCheckRequest, stream health_v1.Health_WatchServer) error
Click to show internal directories.
Click to hide internal directories.