script

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrScriptExecution = errors.New("script error")

Functions

func DecodeScriptHookFunc

func DecodeScriptHookFunc() mapstructure.DecodeHookFunc

Types

type Result

type Result interface {
	ToInteger() int64
	String() string
	ToFloat() float64
	ToBoolean() bool
	Export() interface{}
	ExportType() reflect.Type
}

type Script

type Script interface {
	Execute(ctx heimdall.Context, sub *subject.Subject) (Result, error)
}

func New

func New(val string) (Script, error)

Jump to

Keyboard shortcuts

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