Documentation
¶
Index ¶
- Variables
- type PluginWrapper
- func (w *PluginWrapper) Flush(script string, opts *export.FileNameVars) error
- func (w *PluginWrapper) InitCalls(script string) error
- func (w *PluginWrapper) InitState(script string) error
- func (w *PluginWrapper) OnAfterRequestSend(script string, ctx *model.RequestContext) error
- func (w *PluginWrapper) OnAfterResponseSend(script string, ctx *model.RequestContext) error
- func (w *PluginWrapper) OnBeforeRequestSend(script string, ctx *model.RequestContext) error
- func (w *PluginWrapper) OnBeforeResponseSend(script string, ctx *model.RequestContext) error
- func (w *PluginWrapper) OnClose(script string, ctx *model.RequestContext) error
- func (w *PluginWrapper) OnConnect(script string, ctx *model.RequestContext) error
- func (w *PluginWrapper) OnError(script string, ctx *model.RequestContext, err error) error
- func (w *PluginWrapper) OnWSClose(script string, ctx *model.RequestContext) error
- func (w *PluginWrapper) OnWSMessage(script string, ctx *model.RequestContext, msg *model.WSMessage) error
- func (w *PluginWrapper) OnWSOpen(script string, ctx *model.RequestContext) error
- func (w *PluginWrapper) Shutdown() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrLuaScriptDirectoryNotFound = errors.New("lua script directory not found") ErrLuaScriptDirectoryNotReadable = errors.New("lua script directory cannot be read") ErrLuaScriptFileNotReadable = errors.New("lua script file cannot be read") ErrLuaScriptCallNotFound = errors.New("lua script's call not found") ErrLuaScriptExecute = errors.New("error on lua script execution") )
Functions ¶
This section is empty.
Types ¶
type PluginWrapper ¶
type PluginWrapper struct {
// contains filtered or unexported fields
}
func NewPluginWrapper ¶
func NewPluginWrapper(rt pluginapi.Runtime, dir string) *PluginWrapper
func (*PluginWrapper) Flush ¶
func (w *PluginWrapper) Flush(script string, opts *export.FileNameVars) error
func (*PluginWrapper) InitCalls ¶
func (w *PluginWrapper) InitCalls(script string) error
func (*PluginWrapper) InitState ¶
func (w *PluginWrapper) InitState(script string) error
func (*PluginWrapper) OnAfterRequestSend ¶
func (w *PluginWrapper) OnAfterRequestSend(script string, ctx *model.RequestContext) error
func (*PluginWrapper) OnAfterResponseSend ¶
func (w *PluginWrapper) OnAfterResponseSend(script string, ctx *model.RequestContext) error
func (*PluginWrapper) OnBeforeRequestSend ¶
func (w *PluginWrapper) OnBeforeRequestSend(script string, ctx *model.RequestContext) error
func (*PluginWrapper) OnBeforeResponseSend ¶
func (w *PluginWrapper) OnBeforeResponseSend(script string, ctx *model.RequestContext) error
func (*PluginWrapper) OnClose ¶
func (w *PluginWrapper) OnClose(script string, ctx *model.RequestContext) error
func (*PluginWrapper) OnConnect ¶
func (w *PluginWrapper) OnConnect(script string, ctx *model.RequestContext) error
func (*PluginWrapper) OnError ¶
func (w *PluginWrapper) OnError(script string, ctx *model.RequestContext, err error) error
func (*PluginWrapper) OnWSClose ¶
func (w *PluginWrapper) OnWSClose(script string, ctx *model.RequestContext) error
func (*PluginWrapper) OnWSMessage ¶
func (w *PluginWrapper) OnWSMessage(script string, ctx *model.RequestContext, msg *model.WSMessage) error
func (*PluginWrapper) OnWSOpen ¶
func (w *PluginWrapper) OnWSOpen(script string, ctx *model.RequestContext) error
func (*PluginWrapper) Shutdown ¶
func (w *PluginWrapper) Shutdown() error
Click to show internal directories.
Click to hide internal directories.