lua

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2026 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL