Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RateLimiter ¶
RateLimiter is the interface to limit the incoming request. The purpose of rate limiter is to prevent the node from running out of resource for consensus on DDoS attacks.
func NewRateLimiter ¶
func NewRateLimiter(sm streammanager.Subscriber, global, single int) RateLimiter
NewRateLimiter creates a new rate limiter
Click to show internal directories.
Click to hide internal directories.