node

package
v0.0.0-...-34de315 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2018 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(wg *sync.WaitGroup, events <-chan interface{}, handler EventHandler)

Run will run the node package with the given event handler on the stream of input events.

Types

type EventHandler

type EventHandler interface {
	Process(wg *sync.WaitGroup, event interface{})
}

EventHandler represents a handler to process events. We could use a function, but using an interface makes mocking for tests easier.

Directories

Path Synopsis
handlers
repos
state
sync

Jump to

Keyboard shortcuts

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