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
NewEventPeerJoin creates a new EventPubSubJoin event
type PayloadEmitter ¶ added in v1.15.0
func NewPayloadEmitter ¶ added in v1.15.0
func NewPayloadEmitter(bus event.Bus) (*PayloadEmitter, error)
func (*PayloadEmitter) Emit ¶ added in v1.15.0
func (e *PayloadEmitter) Emit(evt *iface.EventPubSubPayload) error
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 |
Click to show internal directories.
Click to hide internal directories.