cache

package
v0.0.0-...-9172df8 Latest Latest
Warning

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

Go to latest
Published: May 22, 2019 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobCacher

type JobCacher interface {
	All() ([]*model.Job, time.Time)
	Get(guid string) *model.Job
	PauseUntilAtLeast(t time.Time)
	Expires() time.Time
}

JobCacher ... Implements server-side control over database access.

func New

New ... Makes a new cache.

type JobMap

type JobMap map[string]*model.Job

JobMap ... Map of guids to job pointers.

type JobService

type JobService interface {
	GetJobs() ([]*model.Job, error)
}

JobService ... Implements whatever it takes to get new jobs.

Jump to

Keyboard shortcuts

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