package
0.1.31
Repository: https://github.com/dcnetio/gothreads-lib.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

NewTopic returns a new topic for the host.
WithIgnoreResponse indicates whether or not Publish will wait for a response(s) from the receiver(s).
WithMultiResponse indicates whether or not Publish will wait for multiple responses before returning.
WithPubOpts sets native pubsub.PubOpt options.
WithRepublishing indicates whether or not Publish will continue republishing to newly joined peers as long as the context hasn't expired or is not canceled.

# Variables

ErrResponseNotReceived indicates a response was not received after publishing a message.

# Structs

PublishOptions defines options for Publish.
Response wraps a message response.
Topic provides a nice interface to a libp2p pubsub topic.

# Type aliases

EventHandler is used to receive topic peer events.
MessageHandler is used to receive topic messages.
PublishOption defines a Publish option.