task

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FuncTask

func FuncTask(f func() error) *funcTask

func ShellTask added in v0.5.0

func ShellTask(path string) *shellTask

func SqlTask

func SqlTask(driver, conn, qf string) *sqlTask

Types

type BaseTask added in v0.9.1

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

func NewBaseTask added in v0.9.1

func NewBaseTask(checkError, containsTempFiles bool, taskType TaskType, executableFunc, checkErrorFunc func() error) *BaseTask

func (*BaseTask) CheckError added in v0.9.1

func (t *BaseTask) CheckError() bool

func (*BaseTask) CheckTaskError added in v0.9.1

func (t *BaseTask) CheckTaskError() error

func (*BaseTask) ContainsTempFiles added in v0.9.1

func (t *BaseTask) ContainsTempFiles() bool

func (*BaseTask) Execute added in v0.9.1

func (t *BaseTask) Execute() error

func (*BaseTask) Type added in v0.9.1

func (t *BaseTask) Type() TaskType

type TaskType added in v0.8.0

type TaskType int
const (
	Sql TaskType = iota
	Func
	Shell
	Notification
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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