Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶ added in v0.27.3
type Consumer struct {
// contains filtered or unexported fields
}
Consumer is a struct that logs a message for any slashable offences. This struct will be updated in the future when slashing is implemented.
func NewSlashingViolationsConsumer ¶
NewSlashingViolationsConsumer returns a new Consumer
func (*Consumer) OnInvalidMsgError ¶ added in v0.27.3
OnInvalidMsgError logs an error for messages that contained payloads that could not
// be unmarshalled into the message type denoted by message code byte.
func (*Consumer) OnSenderEjectedError ¶ added in v0.27.3
OnSenderEjectedError logs an error for sender ejected error
func (*Consumer) OnUnAuthorizedSenderError ¶ added in v0.27.3
OnUnAuthorizedSenderError logs an error for unauthorized sender error
func (*Consumer) OnUnknownMsgTypeError ¶ added in v0.27.3
OnUnknownMsgTypeError logs an error for unknown message type error
type ViolationsConsumer ¶ added in v0.27.3
type ViolationsConsumer interface { // OnUnAuthorizedSenderError logs an error for unauthorized sender error OnUnAuthorizedSenderError(violation *Violation) // OnUnknownMsgTypeError logs an error for unknown message type error OnUnknownMsgTypeError(violation *Violation) // OnInvalidMsgError logs an error for messages that contained payloads that could not // be unmarshalled into the message type denoted by message code byte. OnInvalidMsgError(violation *Violation) // OnSenderEjectedError logs an error for sender ejected error OnSenderEjectedError(violation *Violation) }
Click to show internal directories.
Click to hide internal directories.