eval_context

package
v0.0.0-...-161ae67 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EvalContext

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

func NewEvalContext

func NewEvalContext(store *store.Store, input io.Reader, httpClient *http.Client) *EvalContext

func NewTestEvalContext

func NewTestEvalContext(input io.Reader, httpClient *http.Client) (*EvalContext, *store.Store)

func (*EvalContext) Compile

func (e *EvalContext) Compile(reader io.Reader, name string) (*lua.FunctionProto, error)

func (*EvalContext) Eval

func (e *EvalContext) Eval(ctx context.Context, compiled *lua.FunctionProto, state *sync.Map, writer io.Writer) (interface{}, error)

func (*EvalContext) EvalReader

func (e *EvalContext) EvalReader(ctx context.Context, reader io.ReadSeeker, state *sync.Map, writer io.Writer) (interface{}, error)

func (*EvalContext) EvalScript

func (e *EvalContext) EvalScript(ctx context.Context, script string, state *sync.Map, writer io.Writer) (interface{}, error)

func (*EvalContext) Parse

func (e *EvalContext) Parse(reader io.Reader, name string) ([]ast.Stmt, error)

Directories

Path Synopsis
modules

Jump to

Keyboard shortcuts

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