httpserver

package
v0.0.0-...-a33ea14 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: GPL-2.0 Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

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