Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TopicValidator ¶
func TopicValidator(log zerolog.Logger, codec network.Codec, peerFilter func(peer.ID) bool, validators ...validator.PubSubMessageValidator) pubsub.ValidatorEx
TopicValidator is the topic validator that is registered with libP2P whenever a flow libP2P node subscribes to a topic. The TopicValidator will decode and perform validation on the raw pubsub message.
Types ¶
Click to show internal directories.
Click to hide internal directories.