Documentation ¶
Index ¶
- func NewNotValidator(validator network.MessageValidator) network.MessageValidator
- func ValidateNotSender(sender flow.Identifier) network.MessageValidator
- func ValidateSender(sender flow.Identifier) network.MessageValidator
- func ValidateTarget(log zerolog.Logger, target flow.Identifier) network.MessageValidator
- type NotValidator
- type SenderValidator
- type TargetValidator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNotValidator ¶ added in v0.21.0
func NewNotValidator(validator network.MessageValidator) network.MessageValidator
func ValidateNotSender ¶ added in v0.21.0
func ValidateNotSender(sender flow.Identifier) network.MessageValidator
ValidateNotSender creates and returns a validator which validates that the message origin id is different from sender id
func ValidateSender ¶ added in v0.21.0
func ValidateSender(sender flow.Identifier) network.MessageValidator
ValidateSender creates and returns a new SenderValidator for the given sender ID
func ValidateTarget ¶ added in v0.21.0
func ValidateTarget(log zerolog.Logger, target flow.Identifier) network.MessageValidator
ValidateTarget returns a new TargetValidator for the given target id
Types ¶
type NotValidator ¶ added in v0.21.0
type NotValidator struct {
// contains filtered or unexported fields
}
NotValidator returns the opposite result of the given validator for the Validate call
type SenderValidator ¶
type SenderValidator struct {
// contains filtered or unexported fields
}
SenderValidator validates messages by sender ID
type TargetValidator ¶
type TargetValidator struct {
// contains filtered or unexported fields
}
TargetValidator filters out messages by target ID
Click to show internal directories.
Click to hide internal directories.