Merge pull request #5345 from shykes/engine-installer

engine.Installer: a standard interface for "installable" services
This commit is contained in:
Solomon Hykes 2014-04-23 16:16:55 -07:00
commit 0fe48b0e59
1 changed files with 7 additions and 0 deletions

View File

@ -10,6 +10,13 @@ import (
"strings"
)
// Installer is a standard interface for objects which can "install" themselves
// on an engine by registering handlers.
// This can be used as an entrypoint for external plugins etc.
type Installer interface {
Install(*Engine) error
}
type Handler func(*Job) Status
var globalHandlers map[string]Handler