pubsub

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2020 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 ObjectType added in v0.5.0

type ObjectType generic.Type // nolint

type PubSubName added in v0.5.0

type PubSubName string // nolint

type PubSubNameFilter added in v0.5.0

type PubSubNameFilter func(ObjectType) bool

type PubSubNamePubSub added in v0.5.0

type PubSubNamePubSub interface {
	Publish(ObjectType)
	Subscribe(...PubSubNameFilter) PubSubNameSubscription
}

PubSubNamePubSub -

func NewPubSubNamePubSub added in v0.5.0

func NewPubSubNamePubSub() PubSubNamePubSub

NewPubSubName constructs and returns a new PubSubNamePubSub

type PubSubNameSubscription added in v0.5.0

type PubSubNameSubscription interface {
	Next() (ObjectType, error)
	Cancel()
}

PubSubNameSubscription is returned for every subscription

Jump to

Keyboard shortcuts

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