Help us shape the future of Go! Take the 2026 Go Developer Survey

define

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: Apache-2.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultWfConf = map[WFConfKey]string{
	WorkFlowResourceName:      "_resourceName",
	WorkFlowResourceNameSpace: "_resourceNameSpace",
	WFInterruptReason:         "interrupt.reason",
	WFInterruptMessage:        "interrupt.message",
	WFInterruptPrevious:       "interrupt.previous.status",
	WFInterruptToRecover:      "interrupt.recover",
}

Functions

func IsWaitingError

func IsWaitingError(err error) bool

func NewInterruptError

func NewInterruptError(reason, msg string) error

func NewWaitingError

func NewWaitingError() error

Types

type InterruptError

type InterruptError struct {
	Reason   string
	ErrorMsg string
}

func IsInterruptError

func IsInterruptError(err error) (bool, *InterruptError)

func (*InterruptError) Error

func (e *InterruptError) Error() string

type WFConfKey

type WFConfKey string
const (
	WorkFlowResourceName      WFConfKey = "WorkFlowResourceName"
	WorkFlowResourceNameSpace WFConfKey = "WorkFlowResourceNameSpace"
	WFInterruptReason         WFConfKey = "WFInterruptReason"
	WFInterruptMessage        WFConfKey = "WFInterruptMessage"
	WFInterruptPrevious       WFConfKey = "WFInterruptPrevious"
	WFInterruptToRecover      WFConfKey = "WFInterruptToRecover"
)

type WaitingError

type WaitingError struct {
}

func (*WaitingError) Error

func (e *WaitingError) Error() string

Jump to

Keyboard shortcuts

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