pubsub

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package pubsub implements cluster-wide publishing and subscribing of events

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBroker

func NewBroker(logger logr.Logger, db otf.DB) *broker

Types

type Broker

type Broker interface {
	otf.PubSubService
	Register(t reflect.Type, getter Getter)
	Start(context.Context) error
	WaitUntilListening()
}

type Getter

type Getter interface {
	GetByID(context.Context, string) (any, error)
}

Getter retrieves an event payload using its ID.

Jump to

Keyboard shortcuts

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