monitor

package
v0.0.0-...-ea1f910 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2016 License: MIT Imports: 10 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 {
	Id() string
	HostDetails() host_details.HostDetails
}

type Status

type Status struct {
	IsAlive    bool
	ExitStatus *exec_logger_dtos.ExitStatusDto
}

type Worker

type Worker interface {
	GetJobContext(ctx *context.Context, job Job) (*jobContext, error)
	CheckCurrentStatus(jobCtx *jobContext) (*Status, error)
	RunJobAndWaitWhileAlive(ctx *context.Context, job Job) error
}

func NewWorker

func NewWorker() Worker

Jump to

Keyboard shortcuts

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