Documentation ¶
Index ¶
- Constants
- Variables
- type Executor
- type Formatter
- type Generator
- type Interpreter
- type Interpreters
- func (self *Interpreters) Exec(ctx *actioncontext.Context) error
- func (self *Interpreters) ExecAsync(ctx *actioncontext.Context) error
- func (self Interpreters) Find(plugin func() PluginImpl) Plugin
- func (self Interpreters) FindById(id types.Hash) Plugin
- func (self *Interpreters) Initialize()
- func (self *Interpreters) Register(plugin func() PluginImpl) Plugin
- func (self *Interpreters) Shutdown()
- func (self *Interpreters) Startup()
- type Plugin
- type PluginImpl
- type PluginName
- type PluginObj
- type State
- type Validator
Constants ¶
View Source
const ( Registered = iota ///< the plugin is constructed but doesn't do anything Initialized ///< the plugin has initialized any state required but is idle Started ///< the plugin is actively running Stopped ///< the plugin is no longer running )
Variables ¶
View Source
var (
TimeoutInterrupter = "timeout interrupter"
)
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator interface {
Generate(ctx *actioncontext.Context) Interpreter
}
type Interpreter ¶
type Interpreters ¶
type Interpreters struct {
// contains filtered or unexported fields
}
func (*Interpreters) Exec ¶
func (self *Interpreters) Exec(ctx *actioncontext.Context) error
func (*Interpreters) ExecAsync ¶
func (self *Interpreters) ExecAsync(ctx *actioncontext.Context) error
func (Interpreters) Find ¶
func (self Interpreters) Find(plugin func() PluginImpl) Plugin
func (*Interpreters) Initialize ¶
func (self *Interpreters) Initialize()
func (*Interpreters) Register ¶
func (self *Interpreters) Register(plugin func() PluginImpl) Plugin
register plugin, need input the constructor of plugin
func (*Interpreters) Shutdown ¶
func (self *Interpreters) Shutdown()
func (*Interpreters) Startup ¶
func (self *Interpreters) Startup()
type PluginImpl ¶
type PluginImpl interface { Initialize() Startup() Shutdown() Generator }
a interpreter must implement PluginImpl interface
type PluginName ¶
type PluginName struct {
// contains filtered or unexported fields
}
func (PluginName) Id ¶
func (pn PluginName) Id() types.Hash
func (PluginName) Name ¶
func (pn PluginName) Name() string
func (*PluginName) Set ¶
func (pn *PluginName) Set(pImpl interface{})
type PluginObj ¶
type PluginObj struct {
// contains filtered or unexported fields
}
func (PluginObj) Generate ¶
func (obj PluginObj) Generate(ctx *actioncontext.Context) Interpreter
func (*PluginObj) Initialize ¶
func (obj *PluginObj) Initialize()
Directories ¶
Path | Synopsis |
---|---|
jsre/deps
Package deps contains the console JavaScript dependencies Go embedded.
|
Package deps contains the console JavaScript dependencies Go embedded. |
deps
Package deps contains the console JavaScript dependencies Go embedded.
|
Package deps contains the console JavaScript dependencies Go embedded. |
Click to show internal directories.
Click to hide internal directories.