publisher

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObservableType

type ObservableType generic.Type // nolint

type PubSub

type PubSub interface {
	Publisher
	Subscriber
}

PubSub -

func NewPubSub

func NewPubSub() PubSub

NewPubSub constructs and returns a new PubSub

type Publisher

type Publisher interface {
	Publish(ObservableType)
}

Publisher deals with the publishing part of our PubSub

type Subscriber

type Subscriber interface {
	Subscribe(chan ObservableType, ...filter)
	Unsubscribe(chan ObservableType)
}

Subscriber deals with the subscribing part of our PubSub

Jump to

Keyboard shortcuts

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