Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Probe ¶
type Probe interface { // Start starts the probes. Start() error // Shutdown shuts the probes down. Shutdown(ctx context.Context) error // WithContext returns a copy of parent associated with this Probe. WithContext(parent context.Context) context.Context // LivenessSucceed sets the liveness probe to respond success, 200 - OK. LivenessSucceed() // LivenessFail sets the liveness probe to return failure, 500 - Internal Server Error. LivenessFail() // ReadinessSucceed sets the liveness probe to respond success, 200 - OK. ReadinessSucceed() // ReadinessFail sets the liveness probe to return failure, 500 - Internal Server Error. ReadinessFail() }
func FromCtx ¶
FromCtx returns the Probe associated with the context. A noop Probe is returned if there is no Probe associated with the context.
Click to show internal directories.
Click to hide internal directories.