Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMultiOperationMatch ¶
NewMultiOperationMatch will create a multi operation matching.
Types ¶
type OperationLimiter ¶
type OperationLimiter struct { Operation string RefillRate rate.Limit Burst int // contains filtered or unexported fields }
OperationLimiter defines the specs of an operation limiter.
type ServiceLimiter ¶
type ServiceLimiter []*OperationLimiter
ServiceLimiter defines a buffer of operation limiters.
func (ServiceLimiter) LimitRequest ¶
func (s ServiceLimiter) LimitRequest(r *request.Request)
LimitRequest will limit a request.
func (ServiceLimiter) ReviewResponse ¶
func (s ServiceLimiter) ReviewResponse(r *request.Request)
ReviewResponse will review the limits of a Request's response.
type ServiceLimiters ¶
type ServiceLimiters map[string]*ServiceLimiter
ServiceLimiters defines a mapping of service limiters.
Click to show internal directories.
Click to hide internal directories.