dispatcher

package
v2.0.0-beta-rc1+incomp... Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatcher

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

func NewDispatcher

func NewDispatcher() *Dispatcher

NewDispatcher creates a Dispatcher with all its event handlers set to no-ops.

func (*Dispatcher) OnDatamodelStatus

func (d *Dispatcher) OnDatamodelStatus(status api.SyncStatus)

func (*Dispatcher) OnStatusUpdated

func (d *Dispatcher) OnStatusUpdated(status api.SyncStatus)

func (*Dispatcher) OnUpdate

func (d *Dispatcher) OnUpdate(update api.Update) (filterOut bool)

func (*Dispatcher) OnUpdates

func (d *Dispatcher) OnUpdates(updates []api.Update)

func (*Dispatcher) Register

func (d *Dispatcher) Register(keyExample model.Key, receiver UpdateHandler)

func (*Dispatcher) RegisterStatusHandler

func (d *Dispatcher) RegisterStatusHandler(handler StatusHandler)

type StatusHandler

type StatusHandler func(status api.SyncStatus)

type UpdateHandler

type UpdateHandler func(update api.Update) (filterOut bool)

Jump to

Keyboard shortcuts

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