Documentation
¶
Overview ¶
Package gsfiber is the Fiber v2 adapter for the gscore graceful-shutdown engine. See the sibling gsfiberv3 package for Fiber v3.
Index ¶
Constants ¶
View Source
const ( PhasePreStop = gscore.PhasePreStop PhaseDrain = gscore.PhaseDrain PhasePostDrain = gscore.PhasePostDrain PhaseDB = gscore.PhaseDB PhasePostDB = gscore.PhasePostDB )
Phase enum re-exports for ergonomic registration.
Variables ¶
This section is empty.
Functions ¶
func ReadinessHandler ¶
ReadinessHandler returns a Fiber v2 handler suitable for a Kubernetes readiness probe. It returns 200 while the Manager is ready and 503 once shutdown has begun, so kube-proxy can remove the pod from service endpoints before in-flight requests are drained.
func RegisterApp ¶
RegisterApp adds a Fiber v2 app to be drained during the drain phase.
Types ¶
Click to show internal directories.
Click to hide internal directories.