system

package
v0.0.0-...-cf2ac4b Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OSPlugin

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

OSPlugin is used to save process context

func (*OSPlugin) Call

func (plugin *OSPlugin) Call(jobName string, params map[string]interface{}) otto.Value

Call Calls an existing job

func (*OSPlugin) GetFunctions

func (plugin *OSPlugin) GetFunctions() map[string]interface{}

GetFunctions returns the functions to be registered in the VM

func (*OSPlugin) GetInstance

func (plugin *OSPlugin) GetInstance(context types.JobContext) types.Plugin

GetInstance Creates a new plugin instance with a context

func (*OSPlugin) Sleep

func (plugin *OSPlugin) Sleep(number int, unit string)

Sleep Sleeps the current process

Jump to

Keyboard shortcuts

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