Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAndRunGRPCHealthProbe ¶
CreateAndRunGRPCHealthProbe - Creates gRPC Health Probe and starts running it background while registering the probing results to Health Server. TODO: configurable period, timeout
Types ¶
type GrpcHealthProbe ¶
type GrpcHealthProbe struct {
// contains filtered or unexported fields
}
func NewGRPCHealthProbe ¶
func NewGRPCHealthProbe(options ...Option) (*GrpcHealthProbe, error)
NewGRPCHealthProbe - Creates gRPC health checking probe
type Option ¶
type Option func(o *probeOptions)
Option is an option pattern for GrpcHealthProbe
func WithAddress ¶
WithAddress sets address for grpc health probe
func WithCommand ¶
WithCommand sets grpc health probe command name
func WithConnectTimeout ¶
WithConnectTimeout connect timeout for grpc health probe
func WithRPCTimeout ¶
WithRPCTimeout RPC timeout for grpc health probe
func WithService ¶
WithService sets service for grpc health probe
Click to show internal directories.
Click to hide internal directories.