pubsub

package
v0.0.0-...-57dcc05 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPubSubHandler

func NewPubSubHandler(abort <-chan struct{}, hub Hub) http.Handler

NewPubSubHandler returns a new http.Handler that handles pubsub messages.

Types

type Hub

type Hub interface {
	Publish(string, interface{}) (func(), error)
}

Hub defines the publish method that the handler uses to publish messages on the centralhub of the apiserver.

Jump to

Keyboard shortcuts

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