pubsub

package
v0.0.0-...-e40ef66 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2019 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PubSub

type PubSub struct {
	// contains filtered or unexported fields
}

func (*PubSub) Publish

func (d *PubSub) Publish(payload event.Payload)

func (*PubSub) Subscribe

func (d *PubSub) Subscribe(f func(payload event.Payload)) error

type PubSuber

type PubSuber interface {
	Publish(payload event.Payload)
	Subscribe(f func(paylaod event.Payload)) error
}

func NewPubSub

func NewPubSub() PubSuber

Jump to

Keyboard shortcuts

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