handler

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Handle(sdkTypes.Context, sdkTypes.Event) []sdkTypes.Action
}

Handler reacts to events and outputs actions. If any intended action failed, the event would be re-triggered. For actions done before the failed action, there is no rollback.

var (
	// RegisteredHandler is the user registered handler set by sdk.Handle()
	RegisteredHandler Handler
)

Jump to

Keyboard shortcuts

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