pubsub

package
v0.0.0-...-51bd6ac Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	From     peer.ID
	Data     []byte
	Seqno    []byte
	TopicIDs []string
}

Message is a pubsub message.

type PubSubSubscription

type PubSubSubscription struct {
	// contains filtered or unexported fields
}

PubSubSubscription allow you to receive pubsub records that where published on the network.

func NewPubSubSubscription

func NewPubSubSubscription(resp io.ReadCloser) *PubSubSubscription

func (*PubSubSubscription) Cancel

func (s *PubSubSubscription) Cancel() error

Cancel cancels the given subscription.

func (*PubSubSubscription) Next

func (s *PubSubSubscription) Next() (*Message, error)

Next waits for the next record and returns that.

Jump to

Keyboard shortcuts

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