decoder

package
v0.0.0-...-1f88bb8 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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

func AddPath

func AddPath(ctx context.Context, paths ...string) context.Context

AddPath ...

func GetPath

func GetPath(ctx context.Context) []string

GetPath ...

func MergeError

func MergeError(ctx context.Context, err error) error

MergeError ...

func NewFieldPathError

func NewFieldPathError(ctx context.Context, err error) error

NewFieldPathError ...

Types

type CommonDecoder

type CommonDecoder struct {
}

CommonDecoder ...

func NewCommonDecoder

func NewCommonDecoder() *CommonDecoder

NewCommonDecoder ...

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 ...

type Decoder

type Decoder interface {
	Decode(definition string) (*states.StateMachine, error)
}

Decoder interface

type DecoderPath

type DecoderPath struct{}

DecoderPath ...

Jump to

Keyboard shortcuts

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