Documentation
¶
Overview ¶
Package probes contains the implementation of startup, liveness and readiness probes
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker interface {
IsHealthy(ctx context.Context, w http.ResponseWriter)
}
Checker executes the probe and writes the response to the request
func NewLivenessChecker ¶
NewLivenessChecker creates a new instance of the liveness probe checker
func NewReadinessChecker ¶
NewReadinessChecker creates a new instance of the readiness probe checker
type ReplicaLaggingError ¶
type ReplicaLaggingError struct {
// DetectedLag is the lag that was detected
DetectedLag uint64
// ConfiguredLag is the lag as configured in the probe
ConfiguredLag uint64
// LatestEndTime is the time of last write-ahead log location reported to
// origin WAL sender
LatestEndTime string
}
ReplicaLaggingError is raised when a replica is lagging more than the configured cap
func (*ReplicaLaggingError) Error ¶
func (e *ReplicaLaggingError) Error() string
Click to show internal directories.
Click to hide internal directories.