Documentation ¶
Index ¶
- func NewOperationInitContext(params interface{}, f mapper.Factory) operation.InitContext
- func TestNew(ctx operation.InitContext) (operation.Operation, error)
- type OperationContext
- func (eCtx *OperationContext) GetInput(name string) interface{}
- func (eCtx *OperationContext) GetInputObject(input data.StructValue) error
- func (eCtx *OperationContext) GetOutput(name string) interface{}
- func (eCtx *OperationContext) Logger() log.Logger
- func (eCtx *OperationContext) Name() string
- func (eCtx *OperationContext) SetInputObject(input data.StructValue) error
- func (eCtx *OperationContext) SetOutput(name string, value interface{}) error
- func (eCtx *OperationContext) SetOutputObject(output data.StructValue) error
- type TestOperation
- type TestOperationInitContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOperationInitContext ¶
func NewOperationInitContext(params interface{}, f mapper.Factory) operation.InitContext
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.8
type TestOperation struct { }
func (*TestOperation) Eval ¶ added in v0.2.8
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{}
Click to show internal directories.
Click to hide internal directories.