script

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler added in v1.5.0

type Handler interface {
	Load(uriOrCode string) (Handler, error)
	String() string
	Value(map[string]interface{}) (interface{}, error)
}

type HandlerLoader added in v1.5.0

type HandlerLoader struct {
	// contains filtered or unexported fields
}

func NewHandlerLoader added in v1.5.0

func NewHandlerLoader(handlers ...Handler) *HandlerLoader

func (*HandlerLoader) LoadHandler added in v1.5.0

func (l *HandlerLoader) LoadHandler(uriOrCode string) (Handler, error)

type Loader

type Loader struct {
	// contains filtered or unexported fields
}

type LuaLoader added in v1.5.0

type LuaLoader struct {
	Loader
	// contains filtered or unexported fields
}

func NewLuaLoader added in v1.5.0

func NewLuaLoader(luaModules []lua.Module, typ typeof.Type) *LuaLoader

NewLuaLoader creates a new loader that can be used to load scripts

func (*LuaLoader) Load added in v1.5.0

func (l *LuaLoader) Load(uriOrCode string) (Handler, error)

Load creates a new script from code or URL and starts a watching if needed

func (*LuaLoader) String added in v1.5.0

func (l *LuaLoader) String() string

func (*LuaLoader) Value added in v1.5.0

func (l *LuaLoader) Value(row map[string]interface{}) (interface{}, error)

type PluginLoader added in v1.5.0

type PluginLoader struct {
	Loader
	// contains filtered or unexported fields
}

func NewPluginLoader added in v1.5.0

func NewPluginLoader(functionName string) *PluginLoader

func (*PluginLoader) Load added in v1.5.0

func (h *PluginLoader) Load(uriOrCode string) (Handler, error)

func (*PluginLoader) String added in v1.5.0

func (h *PluginLoader) String() string

func (*PluginLoader) Value added in v1.5.0

func (h *PluginLoader) Value(row map[string]interface{}) (interface{}, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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