Skip to main content

Module serve

Module serve 

Source
Expand description

Implementation of the serve sub-command.

Starts an HTTP server that exposes job operations as REST endpoints. Endpoints mirror the existing CLI subcommands.

Default bind address: 127.0.0.1:19263 (localhost only).

Structs§

ServeOpts
Options for the serve sub-command.

Functions§

execute
Execute serve: start the HTTP server and block until shutdown.
is_loopback
Returns true if the address is a loopback address.