pubsub

package
v0.0.0-...-7256b75 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 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

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

Creates a new Message event

func NewEventPayload

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

NewEventPayload Creates a new Message event

Types

type Event

type Event interface{}

func NewEventPeerJoin

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

NewEventPeerJoin creates a new EventPubSubJoin event

func NewEventPeerLeave

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

NewEventPeerLeave creates a new EventPubSubLeave event

type PayloadEmitter

type PayloadEmitter struct {
	event.Emitter
}

func NewPayloadEmitter

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

func (*PayloadEmitter) Emit

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