Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartHttpServer ¶
func StartHttpServer(serveAddr string, auth string, valueHolder *vh.ValueHolder) error
StartHttpServer starts an HTTP server that serves the current state of the given valueHolder. It uses the Gin web framework and listens on the specified address and port. If basic authentication is enabled (providing a user:pass to cli), it requires a valid username and password. The server responds to GET requests at the "/api/v1/state/current" endpoint with the current state of the system.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.