alertscript

package module
v0.0.0-...-4d5b1ca Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CTL_PAUSE  = 0
	CTL_RESUME = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AS

type AS struct {
	Result    goja.Value
	NetReqs   int
	LocalReqs int
	NetErrs   int
	NetTime   time.Duration
	// contains filtered or unexported fields
}

func Run

func Run(cf *Conf) (*AS, error)

func (*AS) Diag

func (as *AS) Diag(s string)

from internals

func (*AS) Diagf

func (as *AS) Diagf(s string, args ...interface{})

func (*AS) Log

func (as *AS) Log(s string)

rom console.log (et al)

func (*AS) Logf

func (as *AS) Logf(s string, args ...interface{})

type Conf

type Conf struct {
	Script      string
	DataName    string
	Data        interface{}
	Timeout     time.Duration
	NetTimeout  time.Duration
	HardTimeout time.Duration
	NetMax      int
	NetMock     bool
	Init        func(*goja.Runtime)
	Logger      logger
	Trace       string
	Federation  string
	DataDir     string
}

Directories

Path Synopsis
cmd
std

Jump to

Keyboard shortcuts

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