job

package
v0.46.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job interface {
	Name() string
	ModuleName() string
	FullName() string
	AutoDetection() bool
	AutoDetectionEvery() int
	RetryAutoDetection() bool
	Tick(clock int)
	Start()
	Stop()
	Cleanup()
}

type MockJob

type MockJob struct {
	FullNameFunc           func() string
	ModuleNameFunc         func() string
	NameFunc               func() string
	AutoDetectionFunc      func() bool
	AutoDetectionEveryFunc func() int
	RetryAutoDetectionFunc func() bool
	TickFunc               func(int)
	StartFunc              func()
	StopFunc               func()
}

func (MockJob) AutoDetection

func (m MockJob) AutoDetection() bool

AutoDetection returns mock job AutoDetection.

func (MockJob) AutoDetectionEvery

func (m MockJob) AutoDetectionEvery() int

AutoDetectionEvery returns mock job AutoDetectionEvery.

func (MockJob) FullName

func (m MockJob) FullName() string

FullName returns mock job full name.

func (MockJob) ModuleName

func (m MockJob) ModuleName() string

ModuleName returns mock job module name.

func (MockJob) Name

func (m MockJob) Name() string

Name returns mock job name.

func (MockJob) RetryAutoDetection

func (m MockJob) RetryAutoDetection() bool

RetryAutoDetection invokes mock job RetryAutoDetection.

func (MockJob) Start

func (m MockJob) Start()

Start invokes mock job Start.

func (MockJob) Stop

func (m MockJob) Stop()

Stop invokes mock job Stop.

func (MockJob) Tick

func (m MockJob) Tick(clock int)

Tick invokes mock job Tick.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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