pubsub

package
v0.0.0-...-0f16109 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PubSub

type PubSub interface {
	Publisher
	Subscriber
}

type Publisher

type Publisher interface {
	Publish(ctx context.Context, channel string, message []byte) error
}

type Receiver

type Receiver interface {
	ReceiveMessage(ctx context.Context) (message []byte, err error)
}

type Subscriber

type Subscriber interface {
	Subscribe(ctx context.Context, channels ...string) Receiver
}

Jump to

Keyboard shortcuts

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