jobs

package
v0.0.0-...-593c55d Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefRec = NewRecover(os.Stderr)
)

Functions

func PanicTrace

func PanicTrace(kb int) []byte

PanicTrace trace panic stack info.

func RecoverFunc

func RecoverFunc(fun RecoverFuncType, w io.Writer) func()

Types

type Recover

type Recover struct {
	// contains filtered or unexported fields
}

func NewRecover

func NewRecover(out io.Writer) *Recover

func (*Recover) ReturnFunc

func (r *Recover) ReturnFunc(funcType RecoverFuncType) func()

func (*Recover) Run

func (r *Recover) Run(funcType RecoverFuncType)

func (*Recover) SetOut

func (r *Recover) SetOut(out io.Writer)

type RecoverFuncType

type RecoverFuncType func() (e error)

Jump to

Keyboard shortcuts

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