kk_executor

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Executor

func Executor(stage *kk_stage.Stage, do func() error, failBack func() error) error

Executor 失败时执行回滚程序

Types

type SyncExecutor

type SyncExecutor struct {
	Stage        *kk_stage.Stage
	DB           *gorm.DB
	DBDo         func(tx *gorm.DB) error
	MinIOObjects []kk_minio.OPObject
}

SyncExecutor sync executor

func (*SyncExecutor) Execute

func (e *SyncExecutor) Execute() error

Jump to

Keyboard shortcuts

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