Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAndRunGRPCHealthProbe ¶
CreateAndRunGRPCHealthProbe - Creates and runs a gRPC health probe client and registers the status response of the service to a local gRPC health server retrived from the context. In the local health server the service is refered to by healthService string.
Types ¶
type HealthProbe ¶ added in v1.0.13
type HealthProbe struct {
// contains filtered or unexported fields
}
func NewHealthProbe ¶ added in v1.0.13
func NewHealthProbe(ctx context.Context, options ...Option) (*HealthProbe, error)
NewHealthProbe - Create a new grpc health probe which is an alternate to grpc-health-probe binary but does NOT require a new process to get spawned. Thus, when using with the spiffe option the spire agents are not required to attest new processes all the time when the probe is invoked.
type Option ¶
type Option func(o *probeOptions)
func WithConnectTimeout ¶
WithConnectTimeout sests connect timeout probe
func WithRPCTimeout ¶
WithRPCTimeout sets RPC timeout for probe
func WithUserAgent ¶ added in v1.0.13
WithUserAgent sests user agent