failer

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fail

func Fail(ctx context.Context)

func FailNow

func FailNow(ctx context.Context)

func IntoContext

func IntoContext(ctx context.Context, failer Failer) context.Context

Types

type Failer

type Failer interface {
	Fail(context.Context)
	FailNow(context.Context)
}

func FromContext

func FromContext(ctx context.Context) Failer

func New

func New(pause bool) Failer

Jump to

Keyboard shortcuts

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