pubsub

package
v1.0.30 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2025 License: AGPL-3.0 Imports: 2 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
}

PubSub combines both Publisher and Subscriber interfaces

type Publisher

type Publisher interface {
	// Publish publishes a webhook event
	Publish(ctx context.Context, topic string, msg *message.Message) error
	// Close closes the publisher
	Close() error
}

Publisher defines the interface for publishing webhook events

type Subscriber

type Subscriber interface {
	// Subscribe starts consuming webhook events
	Subscribe(ctx context.Context, topic string) (<-chan *message.Message, error)
	// Close closes the subscriber
	Close() error
}

Subscriber defines the interface for subscribing to webhook events

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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