Documentation ¶
Index ¶
Constants ¶
View Source
const FailAllAttempts = -1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SimpleTrafficController ¶
type SimpleTrafficController struct {
// contains filtered or unexported fields
}
func NewSimpleTrafficController ¶
func NewSimpleTrafficController() *SimpleTrafficController
func (*SimpleTrafficController) AddError ¶
func (tc *SimpleTrafficController) AddError(operation string, err error, failAttempts ...int)
func (*SimpleTrafficController) CheckCallAllowed ¶
func (tc *SimpleTrafficController) CheckCallAllowed(_ context.Context, method string, _, _ interface{}) error
Click to show internal directories.
Click to hide internal directories.