Documentation
¶
Overview ¶
Package startcmd is the start group: osapi start, which runs the NATS server, the controller and the agent in one process.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Group = command.Register(command.Define( "start", "Start all components (NATS, controller, agent)", command.Flat(), command.Uses[Deps](), command.Config("telemetry", config.Telemetry{}), command.Process("start"). Short("Start all components (NATS, controller, agent)"). Long("This runs the embedded NATS server, the API server and the agent together.\n"+ "Use it for a deployment on one host. For a deployment on more than one\n"+ "host, start the NATS server, the controller and each agent alone.\n\n"+ "The NATS server starts first, and waits until it is ready. Then osapi\n"+ "makes the streams and buckets, starts the API server and starts the agent.\n"+ "On `SIGINT` or `SIGTERM`, the three components stop at the same time, in\n"+ "10 seconds or less. Then osapi closes the NATS connections and the\n"+ "telemetry exporters."). Example(""). Logs(startLogs...). Setup(Start), ))
Group is the start group's definition. It is flat at the root, so its method is osapi start.
Functions ¶
Types ¶
type Deps ¶
type Deps struct {
NATS natsserver.Deps
Controller controllercmd.Deps
Agent agentcmd.Deps
}
Deps is what start uses: what each of the three components uses alone.