Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EndpointHash ¶
EndpointHash returns a deterministic hash of the given endpoints.
Types ¶
type State ¶
type State struct {
// contains filtered or unexported fields
}
State tracks the health of an endpoint with failure counting and timeout.
func (*State) IsAvailable ¶
IsAvailable returns true if the endpoint is healthy and accepting requests.
func (*State) RecordFailure ¶
func (s *State) RecordFailure()
RecordFailure increments the failure count, resetting if past the fail timeout.
Click to show internal directories.
Click to hide internal directories.