safefun

package
v0.0.0-...-bc76e52 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpStack

func DumpStack(e interface{}) (err error)

func FunWrapper

func FunWrapper(f func()) (err error)

FunWrapper 无参数 wrapper

func FunWrapperWithArgs

func FunWrapperWithArgs(f func(args ...interface{}), args ...interface{}) (err error)

FunWrapperWithArgs 带参数函数 wrapper

Types

type RollbackOp

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

RollbackOp 回滚操作序列

func NewRollbackOp

func NewRollbackOp() *RollbackOp

func (*RollbackOp) Add

func (r *RollbackOp) Add(f func() error)

func (*RollbackOp) Rollback

func (r *RollbackOp) Rollback() (err error)

Jump to

Keyboard shortcuts

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