Documentation ¶
Index ¶
- func RegisterGoCallback(name string, callback GoCallback)
- type Environment
- func (env *Environment) Clone() ext.Environment
- func (env *Environment) HandleEvent(event string, context map[string]interface{}) (err error)
- func (env *Environment) Load(source, code string) error
- func (env *Environment) LoadExtensionsForPath(extensions []*schema.Extension, path string) error
- func (env *Environment) SetUp()
- type GoCallback
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterGoCallback ¶
func RegisterGoCallback(name string, callback GoCallback)
RegisterGoCallback register go call back
Types ¶
type Environment ¶
type Environment struct {
// contains filtered or unexported fields
}
Environment gohan script based environment for gohan extension
func NewEnvironment ¶
func NewEnvironment() *Environment
NewEnvironment create new gohan extension environment based on context
func (*Environment) Clone ¶
func (env *Environment) Clone() ext.Environment
Clone makes clone of the environment
func (*Environment) HandleEvent ¶
func (env *Environment) HandleEvent(event string, context map[string]interface{}) (err error)
HandleEvent handles event
func (*Environment) Load ¶
func (env *Environment) Load(source, code string) error
Load loads script for environment
func (*Environment) LoadExtensionsForPath ¶
func (env *Environment) LoadExtensionsForPath(extensions []*schema.Extension, path string) error
LoadExtensionsForPath for returns extensions for specific path
type GoCallback ¶
GoCallback is type for go based callback
func GetGoCallback ¶
func GetGoCallback(name string) GoCallback
GetGoCallback returns registered go callback
Click to show internal directories.
Click to hide internal directories.