Documentation ¶
Overview ¶
Package failover contains predicates that define when request should be retried.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNetworkError ¶
Failover in case if last attempt resulted in error
Types ¶
type Predicate ¶
Predicate that defines what request can fail over in case of error or http response
func AttemptsLe ¶
Function that returns predicate allowing certain number of attempts
func ParseExpression ¶
Parses expression in the go language into Failover predicates
func RequestMethodEq ¶
func ResponseCodeEq ¶
Function that returns predicate triggering failover in case if proxy returned certain http code
Click to show internal directories.
Click to hide internal directories.