pubsub

package
v0.76.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: AGPL-3.0 Imports: 12 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 struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context) (*PubSub, error)

New creates a new PubSub using GCP Pub/Sub as a backend.

func (*PubSub) AddEventHandlers

func (pb *PubSub) AddEventHandlers(handlers ...cqrs.EventHandler) error

func (*PubSub) AddSSEHandler

func (pb *PubSub) AddSSEHandler(topic string, handler stream.StreamAdapter) http.HandlerFunc

func (*PubSub) StartEventsRouter

func (pb *PubSub) StartEventsRouter(ctx context.Context) error

func (*PubSub) StartSSERouter

func (pb *PubSub) StartSSERouter(ctx context.Context) error

Jump to

Keyboard shortcuts

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