Documentation
¶
Overview ¶
Package lifecycle tracks whether this instance should receive traffic: not before it has started, and no longer once it is shutting down.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶
type State struct {
// contains filtered or unexported fields
}
State is safe for concurrent use. The zero value is "starting".
func (*State) BeginDrain ¶
func (s *State) BeginDrain()
BeginDrain is called when the instance starts shutting down.
func (*State) MarkStarted ¶
func (s *State) MarkStarted()
MarkStarted is called once the instance serves requests.