counter-frontend-go

command module
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: MIT Imports: 1 Imported by: 0

README

counter-frontend-go

Container Images

  • ghcr.io/ondrejsika/counter-frontend-go

Configuration

  • API_ORIGIN - Origin of the API server (default: http://127.0.0.1:8000)
  • PORT - port to listen on (default: 3000)
  • FONT_COLOR - Color of the counter text (default: #000000, black)
  • BACKGROUND_COLOR - Color of the counter background (default: #ffffff, white)
  • FAIL_ON_ERROR - Exit with fatal error when API request fails (set to 1 to enable, useful for Kubernetes probes)
  • AUTO_REFRESH - Interval in seconds for automatic page refresh via <meta http-equiv="refresh"> (HTML responses only, disabled by default)

Endpoints

  • GET / - Returns the main HTML page with the counter.
  • GET /api/livez - Liveness probe endpoint for health checks (e.g., Kubernetes).
  • GET /api/version - Returns the application version.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
internal
pkg

Jump to

Keyboard shortcuts

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