servergrpchealthcheck

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	grpc_health_v1.UnimplementedHealthServer
	// contains filtered or unexported fields
}

Server implements gRPC grpc_health_v1.HealthServer.

func NewServer

func NewServer(log *zerolog.Logger, b backend.Backend, hcCfg config.GRPCHealthCheckConfig) (*Server, error)

NewServer configures a new Server.

func (*Server) Address

func (s *Server) Address() string

Address returns listener address.

func (*Server) Check

Check implements grpc_health_v1.HealthServer.Check.

func (*Server) Serve

func (s *Server) Serve(ctx context.Context) error

Serve starts gRPC health check server to serve requests.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL