{"id":28405965,"url":"https://github.com/txn2/micro","last_synced_at":"2025-06-29T07:30:53.971Z","repository":{"id":57500996,"uuid":"181432384","full_name":"txn2/micro","owner":"txn2","description":"WIP: TXN2 micro server (gin-gonic wrapper)","archived":false,"fork":false,"pushed_at":"2023-08-24T21:09:20.000Z","size":54,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-02T07:13:25.016Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/txn2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-15T07:13:02.000Z","updated_at":"2023-08-24T21:09:18.000Z","dependencies_parsed_at":"2024-06-20T22:02:43.353Z","dependency_job_id":null,"html_url":"https://github.com/txn2/micro","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/txn2/micro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txn2%2Fmicro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txn2%2Fmicro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txn2%2Fmicro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txn2%2Fmicro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/txn2","download_url":"https://codeload.github.com/txn2/micro/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txn2%2Fmicro/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262556411,"owners_count":23328096,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-01T22:09:44.707Z","updated_at":"2025-06-29T07:30:53.966Z","avatar_url":"https://github.com/txn2.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![micro](https://raw.githubusercontent.com/txn2/micro/master/mast.jpg)\n[![Go Report Card](https://goreportcard.com/badge/github.com/txn2/micro)](https://goreportcard.com/report/github.com/txn2/micro)\n[![GoDoc](https://godoc.org/github.com/txn2/micro?status.svg)](https://godoc.org/github.com/txn2/micro)\n\n\nWIP: Micro wraps gin-gonic and contains flag and environment variable configuration for\nproviding health and metrics endpoints:\n\n- Basic Auth protected `/healthz` for liveness probes.\n- Prometheus metrics on port **2112** at `/metrics`.\n\nReview the example implementation in [./examples/server.go](https://github.com/txn2/micro/blob/master/example/server.go)\n\n\n## Configuration\n\n\n| Flag          | Environment Variable | Description                                            |\n|:--------------|:---------------------|:-------------------------------------------------------|\n| -help         |                      | Display help                                           |\n| -debug        | DEBUG                | Debug logging mode (default false)                     |\n| -ip           | IP                   | Server IP address to bind to. (default \"127.0.0.1\")    |\n| -port         | PORT                 | Server port. (default \"8080\")                          |\n| -healthz      | HEALTHZ              | Enable or disable /healthz (default true)              |\n| -healthzUser  | HEALTHZ_USER         | /healthz basic auth username (default \"healthz\")       |\n| -healthzPass  | HEALTHZ_PASS         | /healthz basic auth password (default \"healthz\")       |\n| -logout       | LOGOUT               | log output stdout \\|  (default \"stdout\")               |\n| -metric       | METRICS              | Enable or Disable metrics (default true)               |\n| -metricsIP    | METRICS_IP           | Falls back to same IP as server. (default \"127.0.0.1\") |\n| -metricsPort  | METRICS_PORT         | Metrics port. (default \"2112\")                         |\n| -readTimeout  | READ_TIMEOUT         | HTTP read timeout in seconds (default 10)              |\n| -writeTimeout | WRITE_TIMEOUT        | HTTP write timeout (default 10)                        |\n| -tokenExp     | TOKEN_EXP            | JWT Token expiration in minutes (default 10)           |\n| -tokenKey     | TOKEN_KEY            | JWT Token Key                                          |\n|               | AGENT                | Populates the agent key of Ack.                        |\n|               | SERVICE_ENV          | Populates the srv_env key of [Ack].                    |\n|               | SERVICE_NS           | Populates the srv_ns key of [Ack].                     |\n\n\n[Ack]: https://github.com/txn2/ack","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftxn2%2Fmicro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftxn2%2Fmicro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftxn2%2Fmicro/lists"}