Help us shape the future of Go! Take the 2026 Go Developer Survey

eventhub

package module
v0.95.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 2 Imported by: 8

README

eventhub

Go Report Card Go Reference

Provides a NewNonBlocking event source to Subscribe and Emit.

[!NOTE]

This repository should be imported as code.cloudfoundry.org/eventhub.

Contributing

See the Contributing.md for more information on how to contribute.

Working Group Charter

This repository is maintained by App Runtime Platform under Diego area.

[!IMPORTANT]

Content in this file is managed by the CI task sync-readme and is generated by CI following a convention.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrHubAlreadyClosed = errors.New("hub already closed")
View Source
var ErrReadFromClosedSource = errors.New("read from closed source")
View Source
var ErrSendToClosedSource = errors.New("send to closed source")
View Source
var ErrSlowConsumer = errors.New("slow consumer")
View Source
var ErrSourceAlreadyClosed = errors.New("source already closed")
View Source
var ErrSubscribedToClosedHub = errors.New("subscribed to closed hub")

Functions

This section is empty.

Types

type Event

type Event interface{}

type Hub

type Hub interface {
	Subscribe() (Source, error)
	Emit(Event)
	Close() error
}

func NewNonBlocking

func NewNonBlocking(consumerBufferSize int) Hub

type Source

type Source interface {
	Next() (Event, error)
	Close() error
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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