Skip to content

Latest commit

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

microGo Report CardGoDoc

WIP: Micro wraps gin-gonic and contains flag and environment variable configuration for providing health and metrics endpoints:

  • Basic Auth protected /healthz for liveness probes.
  • Prometheus metrics on port 2112 at /metrics.

Review the example implementation in ./examples/server.go

Configuration

FlagEnvironment VariableDescription
-helpDisplay help
-debugDEBUGDebug logging mode (default false)
-ipIPServer IP address to bind to. (default "127.0.0.1")
-portPORTServer port. (default "8080")
-healthzHEALTHZEnable or disable /healthz (default true)
-healthzUserHEALTHZ_USER/healthz basic auth username (default "healthz")
-healthzPassHEALTHZ_PASS/healthz basic auth password (default "healthz")
-logoutLOGOUTlog output stdout | (default "stdout")
-metricMETRICSEnable or Disable metrics (default true)
-metricsIPMETRICS_IPFalls back to same IP as server. (default "127.0.0.1")
-metricsPortMETRICS_PORTMetrics port. (default "2112")
-readTimeoutREAD_TIMEOUTHTTP read timeout in seconds (default 10)
-writeTimeoutWRITE_TIMEOUTHTTP write timeout (default 10)
-tokenExpTOKEN_EXPJWT Token expiration in minutes (default 10)
-tokenKeyTOKEN_KEYJWT Token Key
AGENTPopulates the agent key of Ack.
SERVICE_ENVPopulates the srv_env key of Ack.
SERVICE_NSPopulates the srv_ns key of Ack.

About

WIP: TXN2 micro server (gin-gonic wrapper)

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages