package
0.0.0-20240424113911-f27ceb665a59
Repository: https://github.com/catspa3/catspad.git
Documentation: pkg.go.dev
# Functions
ConvertToBanningProtocolErrorIfRuleError converts the given error to a banning protocol error if it's a rule error, and otherwise keep it as is.
Errorf formats according to a format specifier and returns the string as a ProtocolError.
New returns a ProtocolError with the supplied message.
Wrap wraps the given error and returns it as a ProtocolError.
Wrapf wraps the given error with the given format and returns it as a ProtocolError.
# Structs
ProtocolError is an error that signifies a violation of the peer-to-peer protocol.