Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MessageTopicValidator ¶
type MessageTopicValidator struct {
// contains filtered or unexported fields
}
MessageTopicValidator may be registered on go-libp3p-pubsub to validate msgsub payloads.
func NewMessageTopicValidator ¶
func NewMessageTopicValidator(syntaxVal *consensus.DefaultMessageSyntaxValidator, sigVal *consensus.MessageSignatureValidator, opts ...pubsub.ValidatorOpt) *MessageTopicValidator
NewMessageTopicValidator returns a MessageTopicValidator using the input signature and syntax validators.
func (*MessageTopicValidator) Opts ¶
func (mtv *MessageTopicValidator) Opts() []pubsub.ValidatorOpt
func (*MessageTopicValidator) Topic ¶
func (mtv *MessageTopicValidator) Topic(network string) string
func (*MessageTopicValidator) Validator ¶
func (mtv *MessageTopicValidator) Validator() pubsub.Validator
Click to show internal directories.
Click to hide internal directories.