Documentation ¶
Overview ¶
Package oor implements an opinionated standalone listener which can be used by load balancer to take the server instance out of rotation or bring it back in rotation. The instance will go out of rotation on receiving SIGUSR1 and can be brought back in rotation by sending SIGUSR2.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
Handler represents OOR handler.
func NewHandler ¶
NewHandler returns an OOR Handler. Initial state is defined by caller, and subsequent states are handled via SIGUSR1 and SIGUSR2
func (*Handler) InRotation ¶
InRotation returns true if the server instance is ready to serve traffic.
Click to show internal directories.
Click to hide internal directories.