common

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	New      Status = "new"
	Pending         = "pending"
	Complete        = "complete"
	Error           = "error"
	NotExist        = "not-exist"
)
View Source
const WorkerAuthHeader = "X-Worker-Authorization"

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job[J, R any] struct {
	ID     string `json:"id"`
	Status Status `json:"status"`
	Job    J      `json:"job"`
	Result R      `json:"result,omitempty"`
}

type Status

type Status string

Jump to

Keyboard shortcuts

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