msgsub

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2021 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Topic

func Topic(networkName string) string

MessageTopic returns the network pubsub topic identifier on which new messages are announced. The message payload is just a SignedMessage.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL