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 ¶
NewEventPeerJoin creates a new EventPubSubJoin event
type PayloadEmitter ¶
func NewPayloadEmitter ¶
func NewPayloadEmitter(bus event.Bus) (*PayloadEmitter, error)
func (*PayloadEmitter) Emit ¶
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.