gossiptopic

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeTopic

func MakeTopic(h host.Host, topicName string) (*pubsub.Topic, context.CancelFunc, error)

MakeTopic creates a new PubSub object using the default GossipSubRouter as the router, and then joins the named topic. Returns a Topic handle for the joined topic and a CancelFunc to shutdown the PubSub object. Only one Topic handle should exist per topic, and MakeTopic will error if the Topic handle already exists.

Types

This section is empty.

Jump to

Keyboard shortcuts

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