eventhub

package module
v0.0.0-...-217f8c0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 4

README

EventHub

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

Reporting issues and requesting features

Please report all issues and feature requests in cloudfoundry/diego-release.

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