Documentation
¶
Index ¶
Constants ¶
const ( Channel = "server_control" MCP = "mcp_restart" API = "api_restart" )
Channel is the Postgres channel of the orders to serve, apart from the settings'. MCP and API are its payloads: the part of serve to restart.
Variables ¶
var ErrUnknownPart = errors.New("the part to restart must be the MCP or the API")
Functions ¶
func Process ¶
Process asks the running serve to stop one of its HTTP servers, part (MCP or API), and start it again in the same process: the admin's TUI is another process, it reaches serve through Postgres like the settings do. The MCP comes back only if mcp_enabled is on. Nobody hears it when no serve runs, and it is not kept.
Types ¶
This section is empty.