pubsub

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NewRandomSub              = pubsub.NewRandomSub
	NewRandomSubWithProtocols = pubsub.NewRandomSubWithProtocols
	NewGossipSub              = pubsub.NewGossipSub
	WithEventTracer           = pubsub.WithEventTracer
	WithMessageIDFn           = pubsub.WithMessageIdFn
)

function aliases

View Source
var (
	FloodSubID = pubsub.FloodSubID
)

variable aliases

Functions

func WithGossipSubProtocol

func WithGossipSubProtocol(proto protocol.ID) pubsub.Option

WithGossipSubProtocol changes the default protocol of gossipsub and make it like the latest '/meshsub/1.1.0'

Types

type Message

type Message = pubsub.Message

Message is type alias.

type MsgIDFn

type MsgIDFn = pubsub.MsgIdFunction

MsgIDFn is type alias.

type Notif

type Notif = pubsub.PubSubNotif

Notif is type alias.

type PbMessage

type PbMessage = pubsub_pb.Message

PbMessage is type alias.

type PubSub

type PubSub = pubsub.PubSub

PubSub is type alias.

type Subscription

type Subscription = pubsub.Subscription

Subscription is type alias.

type Topic

type Topic = pubsub.Topic

Topic is type alias.

type TopicMsgHandler

type TopicMsgHandler = interface{}

type TopicWireListener

type TopicWireListener = interface{}

type TraceEvent

type TraceEvent = pubsub_pb.TraceEvent

TraceEvent is type alias.

Jump to

Keyboard shortcuts

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