controller

package
v0.0.0-...-17003a6 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	// Prepare prepare
	Prepare() error
	Run() error
}

Controller is the controller of job

func NewController

func NewController() (Controller, error)

NewController create Controller.

type ControllerImpl

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

ControllerImpl is the implement of Controller

func (*ControllerImpl) Prepare

func (l *ControllerImpl) Prepare() (err error)

Prepare prepare for job

func (*ControllerImpl) Run

func (l *ControllerImpl) Run() (err error)

Run start the job

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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