service

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeepJobsNever = iota
	KeepJobsAlways
	KeepJobsOnFailure
)

Variables

This section is empty.

Functions

func HandleAssets

func HandleAssets() http.Handler

func HandleUI

func HandleUI(res http.ResponseWriter, req *http.Request)

func Start

func Start(opts Options, log *zap.Logger) (func(context.Context) error, error)

Types

type Options

type Options struct {
	Addr           string
	QueueLength    int
	QueueTimeout   time.Duration
	MaxJobSize     int64 // number of bytes
	Executor       func(exec.Document) exec.Exec
	CompileTimeout time.Duration
	Mode           string
	KeepJobs       int // used for debugging
	Images         []string
	RefStore       refstore.Adapter
}

type Status

type Status struct {
	Version       string      `json:"version"`
	Mode          string      `json:"mode"`
	Images        []string    `json:"images,omitempty"`
	Timeout       float64     `json:"timeout"` // job timeout in seconds
	Engines       []string    `json:"engines"`
	DefaultEngine string      `json:"default_engine"`
	Queue         queueStatus `json:"queue"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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