job

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseJob

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

func NewBaseJob

func NewBaseJob(dir string, files []string) BaseJob

func (*BaseJob) Errors

func (j *BaseJob) Errors() err.IErrors

func (*BaseJob) GetDir

func (j *BaseJob) GetDir() string

func (*BaseJob) GetExitError

func (j *BaseJob) GetExitError(err error) error

func (*BaseJob) GetFiles

func (j *BaseJob) GetFiles() []string

func (*BaseJob) ReceiveStatus

func (j *BaseJob) ReceiveStatus() chan string

func (*BaseJob) SendStatus

func (j *BaseJob) SendStatus(status string)

type IJob

type IJob interface {
	GetFiles() []string
	GetDir() string
	Errors() error.IErrors
	Run()
	ReceiveStatus() chan string
}

Jump to

Keyboard shortcuts

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