plugin

package module
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.0.2

type Config struct {
	HotLoad *int
}

type PluginObject

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

func (*PluginObject) AddTask added in v0.0.2

func (obj *PluginObject) AddTask(spec string, file string, policy *string, vm *goja.Runtime) error

func (*PluginObject) Config added in v0.0.2

func (obj *PluginObject) Config(cfg Config)

func (*PluginObject) CountList

func (obj *PluginObject) CountList(k string) int

func (*PluginObject) Get

func (obj *PluginObject) Get(k string) any

func (*PluginObject) GetAll added in v0.0.4

func (obj *PluginObject) GetAll(prefix *string) any

func (*PluginObject) GetSet

func (obj *PluginObject) GetSet(k string, fn func(old any) any)

func (*PluginObject) Keys added in v0.0.4

func (obj *PluginObject) Keys(prefix *string) []string

func (*PluginObject) Pop

func (obj *PluginObject) Pop(k string) any

func (*PluginObject) Push

func (obj *PluginObject) Push(k string, v any)

func (*PluginObject) Remove

func (obj *PluginObject) Remove(k string)

func (*PluginObject) RemoveAll added in v0.0.4

func (obj *PluginObject) RemoveAll(prefix *string)

func (*PluginObject) RemoveList

func (obj *PluginObject) RemoveList(k string)

func (*PluginObject) RemoveTask

func (obj *PluginObject) RemoveTask(spec string, file string, vm *goja.Runtime) error

func (*PluginObject) RunOnce added in v0.0.2

func (obj *PluginObject) RunOnce(file string, vm *goja.Runtime) error

func (*PluginObject) Set

func (obj *PluginObject) Set(k string, v any)

func (*PluginObject) Start

func (obj *PluginObject) Start(vm *goja.Runtime)

func (*PluginObject) Stop

func (obj *PluginObject) Stop(vm *goja.Runtime)

type Task

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

func (*Task) RunFunc

func (task *Task) RunFunc(fnName string) error

Jump to

Keyboard shortcuts

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