Documentation
¶
Index ¶
- Variables
- func AddPath(ctx context.Context, paths ...string) context.Context
- func GetPath(ctx context.Context) []string
- func MergeError(ctx context.Context, err error) error
- func NewFieldPathError(ctx context.Context, err error) error
- type CommonDecoder
- func (decoder *CommonDecoder) AddCtxDecodePath(ctx context.Context, paths ...string) context.Context
- func (decoder *CommonDecoder) Decode(definition string) (*states.StateMachine, error)
- func (decoder *CommonDecoder) GetCtxDecodePath(ctx context.Context) []string
- func (decoder *CommonDecoder) MapDecode(input any, output any) error
- func (decoder *CommonDecoder) NewFieldPathError(ctx context.Context, err error) error
- type Decoder
- type DecoderPath
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultStateMachineHeader = states.StateMachineHeader{ Version: "1.0", Type: WorkflowType.Statemachine, }
DefaultStateMachineHeader ...
View Source
var WorkflowType = struct { Pipeline string Statemachine string Stepfunction string }{ Pipeline: "pipeline", Statemachine: "statemachine", Stepfunction: "stepfunction", }
WorkflowType ...
Functions ¶
Types ¶
type CommonDecoder ¶
type CommonDecoder struct {
}
CommonDecoder ...
func (*CommonDecoder) AddCtxDecodePath ¶
func (decoder *CommonDecoder) AddCtxDecodePath(ctx context.Context, paths ...string) context.Context
AddCtxDecodePath ...
func (*CommonDecoder) Decode ¶
func (decoder *CommonDecoder) Decode(definition string) (*states.StateMachine, error)
Decode ...
func (*CommonDecoder) GetCtxDecodePath ¶
func (decoder *CommonDecoder) GetCtxDecodePath(ctx context.Context) []string
GetCtxDecodePath ...
func (*CommonDecoder) MapDecode ¶
func (decoder *CommonDecoder) MapDecode(input any, output any) error
MapDecode decode the map to the target object
func (*CommonDecoder) NewFieldPathError ¶
func (decoder *CommonDecoder) NewFieldPathError(ctx context.Context, err error) error
NewFieldPathError ...
Click to show internal directories.
Click to hide internal directories.