op

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OpsRegisterMap = map[string]Op{}

Functions

func AddOp

func AddOp(op Op)

Types

type Context added in v1.2.0

type Context interface {
	context.Context
	RunTask(name string)
	GetVM() *goja.Runtime
	GetOriCall() *goja.FunctionCall
	SetRetVal(val goja.Value)
}

type Op

type Op struct {
	Name    string
	Handler func(ctx Context, args []string)
}

Jump to

Keyboard shortcuts

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