dto

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractResultFromFnCallResult

func ExtractResultFromFnCallResult(result any, marshaller func(any) ([]byte, error)) (*[]byte, error)

func Marshal

func Marshal(v any) ([]byte, error)

func Unmarshal

func Unmarshal(data []byte, v any) error

Types

type Error

type Error struct {
	Message string
}

func ExtractErrorFromFnCallError

func ExtractErrorFromFnCallError(err error) *Error

type ExecutionResult

type ExecutionResult struct {
	Result *[]byte `json:",omitempty"`
	Error  *Error  `json:",omitempty"`
}

type WorkflowExecutionResult

type WorkflowExecutionResult struct {
	WorkflowID    string
	Version       string
	RuntimeStatus string
	ExecutionResult
}

type WorkflowRuntimeStatus

type WorkflowRuntimeStatus string
const (
	WorkflowRuntimeStatusPending   WorkflowRuntimeStatus = "pending"
	WorkflowRuntimeStatusRunning   WorkflowRuntimeStatus = "running"
	WorkflowRuntimeStatusCompleted WorkflowRuntimeStatus = "completed"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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