Initial spike

This is mostly to solidify the overall structure with the agent,
plugins, and testing philosphy.
This commit is contained in:
Evan Phoenix
2015-04-01 09:34:32 -07:00
parent b8e13890a9
commit db74acb86d
13 changed files with 649 additions and 0 deletions

15
plugins/registry.go Normal file
View File

@@ -0,0 +1,15 @@
package plugins
import "github.com/vektra/cypress"
type Plugin interface {
Read() ([]*cypress.Message, error)
}
type Creator func() Plugin
var Plugins = map[string]Creator{}
func Add(name string, creator Creator) {
Plugins[name] = creator
}