Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TopicValidator ¶
func TopicValidator(validators ...MessageValidator) pubsub.ValidatorEx
Types ¶
type MessageValidator ¶
type MessageValidator func(ctx context.Context, from peer.ID, msg *message.Message) pubsub.ValidationResult
MessageValidator validates the given message with original sender `from`. Note: contrarily to pubsub.ValidatorEx, the peerID parameter does not represent the bearer of the message, but its source.
func StakedValidator ¶
Click to show internal directories.
Click to hide internal directories.