runtime

package
v0.0.0-...-dc6f9f8 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecutionID

func ExecutionID() string

Types

type Context

type Context struct {
	Parent  *Context        `ko:"name=parent"`
	Source  string          `ko:"name=source"` // source location of this invocation
	Context context.Context `ko:"name=context"`
	Kill    <-chan struct{} `ko:"name=kill"` // closure on this channel is a kill signal
}

Context is runtime context passed to Go operator implementations.

func CompilerContext

func CompilerContext() *Context

func NewContext

func NewContext() *Context

func (*Context) Fatalf

func (ctx *Context) Fatalf(format string, arg ...interface{})

func (*Context) Panicf

func (ctx *Context) Panicf(format string, arg ...interface{})

func (*Context) Printf

func (ctx *Context) Printf(format string, arg ...interface{})

type Fault

type Fault struct {
	Context *Context    `ko:"name=context"` // context passed to callee (which emitted error or panic)
	Panic   interface{} `ko:"name=panic"`   // set if call panicked
	GoStack []byte      `ko:"name=goStack"`
}

Fault represents a panic occurring while calling a subfunction from the returning function.

func (*Fault) Error

func (p *Fault) Error() string

type Recoverer

type Recoverer interface {
	Recover() (recovered interface{})
	Stack() []byte
	Context() *Context
}

Recoverer captures the runtime result of a circuit step.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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