common

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	New      Status = 0
	Pending         = 1
	Complete        = 2
	Error           = 3
	NotExist        = 4
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job[T any] struct {
	ID      string `json:"id"`
	Status  Status `json:"status"`
	Content T      `json:"content"`
	Result  any    `json:"result,omitempty"`
}

type Status

type Status int

Jump to

Keyboard shortcuts

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