listening

package
v0.0.0-...-f194415 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunAll

func RunAll(listeners []Listener) *sync.WaitGroup

func SigHandler

func SigHandler() <-chan struct{}

setup a signal hander to gracefully exit

Types

type Listener

type Listener interface {
	// Generics when?
	AddEvent(interface{})
	UpdateEvent(interface{}, interface{})
	DeleteEvent(interface{})
	Run(<-chan struct{})
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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