msgsub

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 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

NewMessageTopicValidator returns a MessageTopicValidator using the input signature and syntax validators.

func (*MessageTopicValidator) Opts

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