pubsub

package
v0.5.65 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2025 License: AGPL-3.0, AGPL-3.0-or-later Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPubSub

func NewPubSub(ctx context.Context, handlers ...pubsub.TopicHandler) *memberPubSub

func PrefollowUsers

func PrefollowUsers(userIds ...string) (handlers []pubsub.TopicHandler)

Types

type CRDTBroadcaster added in v0.5.65

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

func (*CRDTBroadcaster) Broadcast added in v0.5.65

func (b *CRDTBroadcaster) Broadcast(ctx context.Context, bytes []byte) error

func (*CRDTBroadcaster) Next added in v0.5.65

func (b *CRDTBroadcaster) Next(ctx context.Context) ([]byte, error)

type PubsubServerNodeConnector

type PubsubServerNodeConnector interface {
	Node() warpnet.P2PNode
	NodeInfo() warpnet.NodeInfo
	SelfStream(path stream.WarpRoute, data any) (_ []byte, err error)
	GenericStream(nodeIdStr string, path stream.WarpRoute, data any) (_ []byte, err error)
}

Jump to

Keyboard shortcuts

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