pubsub

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

pubsub a publish subscribe client for IPFS PubSub

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEventMessage added in v1.10.0

func NewEventMessage(content []byte) *iface.EventPubSubMessage

Creates a new Message event

func NewEventPayload added in v1.7.0

func NewEventPayload(payload []byte, peerid peer.ID) *iface.EventPubSubPayload

NewEventPayload Creates a new Message event

Types

type Event added in v1.15.0

type Event interface{}

func NewEventPeerJoin added in v1.10.0

func NewEventPeerJoin(p peer.ID, topic string) Event

NewEventPeerJoin creates a new EventPubSubJoin event

func NewEventPeerLeave added in v1.10.0

func NewEventPeerLeave(p peer.ID, topic string) Event

NewEventPeerLeave creates a new EventPubSubLeave event

type PayloadEmitter added in v1.15.0

type PayloadEmitter struct {
	event.Emitter
}

func NewPayloadEmitter added in v1.15.0

func NewPayloadEmitter(bus event.Bus) (*PayloadEmitter, error)

func (*PayloadEmitter) Emit added in v1.15.0

Directories

Path Synopsis
directchannel
directchannel
oneonone is a pubsub channel for communication between two peers
oneonone is a pubsub channel for communication between two peers
pubsubcoreapi pubsub helpers using IPFS CoreAPI
pubsubcoreapi pubsub helpers using IPFS CoreAPI
pubsubraw pubsub helpers using IPFS Golang implementation
pubsubraw pubsub helpers using IPFS Golang implementation

Jump to

Keyboard shortcuts

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