Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidMaxNumRequests = errors.New("max number of requests value is invalid")
ErrInvalidMaxNumRequests signals that a provided number of requests is invalid
Functions ¶
func NewGlobalThrottler ¶
NewGlobalThrottler creates a new instance of a globalThrottler
func NewSourceThrottler ¶
NewSourceThrottler creates a new instance of a sourceThrottler
func WithElrondFacade ¶
func WithElrondFacade(elrondFacade ElrondHandler) gin.HandlerFunc
WithElrondFacade middleware will set up an ElrondFacade object in the gin context
Types ¶
type ElrondHandler ¶
type ElrondHandler interface { }
ElrondHandler interface defines methods that can be used from `elrondFacade` context variable
Click to show internal directories.
Click to hide internal directories.