action

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTimeout = &ActionFailure{
		Reason: "timeout",
	}

	ErrConnectionClosed = &ActionFailure{
		Reason: "connection closed",
	}
)

Functions

func HandleConnectionFailure

func HandleConnectionFailure(err error) error

func IsConnectionClosed

func IsConnectionClosed(err error) bool

func IsFailure

func IsFailure(err error) bool

func IsSkip

func IsSkip(err error) bool

func IsTimeout

func IsTimeout(err error) bool

Types

type ActionFailure

type ActionFailure struct {
	Reason string
}

func Fail

func Fail(reason string) *ActionFailure

func Failf

func Failf(format string, a ...interface{}) *ActionFailure

func (*ActionFailure) Error

func (e *ActionFailure) Error() string

type ActionSkip

type ActionSkip struct {
	Reason string
}

func Skip

func Skip(reason string) *ActionSkip

func Skipf

func Skipf(format string, a ...interface{}) *ActionSkip

func (*ActionSkip) Error

func (e *ActionSkip) Error() string

Jump to

Keyboard shortcuts

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