notify

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const EventNotFound = "Event not found"

Variables

This section is empty.

Functions

func Post

func Post(event interface{}, data interface{}) error

Post a notification (arbitrary data) to the specified event

func PostTimeout

func PostTimeout(event interface{}, data interface{}, timeout time.Duration) error

Post a notification to the specified event using the provided timeout for any output channels that are blocking

func Start

func Start(event interface{}) chan interface{}

func Stop

func Stop(event interface{}, outputChan chan interface{}) error

Stop observing the specified event on the provided output channel

func StopAll

func StopAll(event string)

Stop observing the specified event on all channels

Types

This section is empty.

Jump to

Keyboard shortcuts

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