job

package
v0.0.0-...-41f210e Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VerifyState

func VerifyState(State string) bool

verify the state string

func VerifyType

func VerifyType(Type string) bool

verify the type string

Types

type Job

type Job struct {
	// type of job : upload / export / teams
	Type string `redis:"type"`
	// state of job : start / pause / kill
	State string `redis:"state"`
}

store job metadata

func New

func New(Type string) *Job

returns a new job

Jump to

Keyboard shortcuts

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