test

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOperationInitContext

func NewOperationInitContext(params interface{}, f mapper.Factory) operation.InitContext

func TestNew added in v0.2.0

Types

type OperationContext

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

func (*OperationContext) GetInput

func (eCtx *OperationContext) GetInput(name string) interface{}

func (*OperationContext) GetInputObject

func (eCtx *OperationContext) GetInputObject(input data.StructValue) error

func (*OperationContext) GetOutput

func (eCtx *OperationContext) GetOutput(name string) interface{}

func (*OperationContext) Logger

func (eCtx *OperationContext) Logger() log.Logger

func (*OperationContext) Name

func (eCtx *OperationContext) Name() string

func (*OperationContext) SetInputObject

func (eCtx *OperationContext) SetInputObject(input data.StructValue) error

func (*OperationContext) SetOutput

func (eCtx *OperationContext) SetOutput(name string, value interface{}) error

func (*OperationContext) SetOutputObject

func (eCtx *OperationContext) SetOutputObject(output data.StructValue) error

type TestOperation added in v0.2.0

type TestOperation struct {
}

func (*TestOperation) Eval added in v0.2.0

func (t *TestOperation) Eval(inputs map[string]interface{}) (interface{}, error)

type TestOperationInitContext

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

func (*TestOperationInitContext) Logger

func (ic *TestOperationInitContext) Logger() log.Logger

func (*TestOperationInitContext) MapperFactory

func (ic *TestOperationInitContext) MapperFactory() mapper.Factory

func (*TestOperationInitContext) Params

func (ic *TestOperationInitContext) Params() map[string]interface{}

Jump to

Keyboard shortcuts

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