pubsub

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NameFilter added in v0.11.0

type NameFilter func(ObjectType) bool

type NamePubSub added in v0.11.0

type NamePubSub interface {
	Publish(ObjectType)
	Subscribe(...NameFilter) NameSubscription
}

NamePubSub -

func NewNamePubSub added in v0.11.0

func NewNamePubSub() NamePubSub

NewName constructs and returns a new Name

type NameSubscription added in v0.11.0

type NameSubscription interface {
	Channel() <-chan ObjectType
	Next() (ObjectType, error)
	Cancel()
}

NameSubscription is returned for every subscription

type ObjectType added in v0.5.0

type ObjectType generic.Type // nolint

Jump to

Keyboard shortcuts

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