package
1.3.1
Repository: https://github.com/dashpay/tenderdash.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

HandlerWithMiddlewares is a function that wraps a handler in middlewares.
New creates and returns Client with optional functions.
NewRateLimit creates a new rate limiter.
ResponseFuncFromEnvelope creates a response function that is taken some parameters from received envelope to make the valid message that will be sent back to the peer.
WithChanIDResolver is an option function to set channel ID resolver function.
WithClock is an optional function to set clock to Client.
WithErrorLoggerMiddleware creates error logging middleware.
WithLogger is an optional function to set logger to Client.
WithRecoveryMiddleware creates panic recovery middleware.
No description provided by the author
WithSendRateLimits defines a rate limiter for the provided channels.
WithValidateMessageHandler creates message validation middleware.

# Constants

DefaultRecvBurstMultiplier tells how many times burst is bigger than the limit in recvRateLimitPerPeerHandler.
number of seconds to keep the rate limiter for a peer.
RequestIDAttribute is used to provide unique request-id value.
ResponseIDAttribute is used to provide response-id that should be taken from received request-id.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
RateLimit is a rate limiter for p2p messages.

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author