Documentation
¶
Index ¶
- func GRPCProbe(config GRPCProbeConfigOptions) error
- func HTTPProbe(config HTTPProbeConfigOptions) error
- func ProbeHandler(prober func() bool, tracingEnabled bool) http.HandlerFunc
- func TCPProbe(config TCPProbeConfigOptions) error
- type GRPCProbeConfigOptions
- type HTTPProbeConfigOptions
- type TCPProbeConfigOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GRPCProbe ¶ added in v0.39.0
func GRPCProbe(config GRPCProbeConfigOptions) error
GRPCProbe checks that gRPC connection can be established to the address.
func HTTPProbe ¶ added in v0.8.0
func HTTPProbe(config HTTPProbeConfigOptions) error
HTTPProbe checks that HTTP connection can be established to the address.
func ProbeHandler ¶ added in v0.19.0
func ProbeHandler(prober func() bool, tracingEnabled bool) http.HandlerFunc
ProbeHandler returns a http.HandlerFunc that responds to health checks. This handler assumes the Knative Probe Header will be passed.
Types ¶
type GRPCProbeConfigOptions ¶ added in v0.39.0
type GRPCProbeConfigOptions struct {
Timeout time.Duration
*corev1.GRPCAction
KubeMajor string
KubeMinor string
}
GRPCProbeConfigOptions holds the gRPC probe config options
type HTTPProbeConfigOptions ¶ added in v0.8.0
type HTTPProbeConfigOptions struct {
Timeout time.Duration
*corev1.HTTPGetAction
KubeMajor string
KubeMinor string
MaxProtoMajor int
}
HTTPProbeConfigOptions holds the HTTP probe config options
type TCPProbeConfigOptions ¶ added in v0.8.0
type TCPProbeConfigOptions struct {
SocketTimeout time.Duration
Address string
}
TCPProbeConfigOptions holds the TCP probe config options
Click to show internal directories.
Click to hide internal directories.