{"id":38015394,"url":"https://github.com/iamgoroot/gin-endpoint-usage","last_synced_at":"2026-01-16T19:24:33.158Z","repository":{"id":259351972,"uuid":"871382367","full_name":"iamgoroot/gin-endpoint-usage","owner":"iamgoroot","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-23T07:22:07.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-24T19:01:34.155Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iamgoroot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-10-11T21:08:14.000Z","updated_at":"2024-10-23T07:22:11.000Z","dependencies_parsed_at":"2024-10-24T22:08:22.295Z","dependency_job_id":null,"html_url":"https://github.com/iamgoroot/gin-endpoint-usage","commit_stats":null,"previous_names":["iamgoroot/gin-endpoint-usage"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iamgoroot/gin-endpoint-usage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamgoroot%2Fgin-endpoint-usage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamgoroot%2Fgin-endpoint-usage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamgoroot%2Fgin-endpoint-usage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamgoroot%2Fgin-endpoint-usage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamgoroot","download_url":"https://codeload.github.com/iamgoroot/gin-endpoint-usage/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamgoroot%2Fgin-endpoint-usage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28481681,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-01-16T19:24:32.996Z","updated_at":"2026-01-16T19:24:33.134Z","avatar_url":"https://github.com/iamgoroot.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gin-usage-stats\n\nA simple middleware for Gin that allows you to collect usage statistics for your endpoints to find unused endpoints.\nIt's intended to use this on your test server while running your autotests.\n\nFor production monitoring use prometheus libs for example https://github.com/penglongli/gin-metrics \n\n## Installation\n\nYou can install the package via go get:\n\n```golang\ngo get github.com/iamgoroot/gin-endpoint-usage\n```\n\n## Usage\n\nYou can setup it directly in your Gin application as follows:\n```golang\npackage main\n\nimport (\n    \"github.com/gin-gonic/gin\"\n    \"github.com/iamgoroot/gin-endpoint-usage\"\n)\n\nfunc main() {\n   \trouter := gin.Default()\n\trdb := redis.NewClient(\u0026redis.Options{ /* redis options */\t})\n\tstats := \u0026StatMiddleware{Backend: \u0026RedisBackend{RedisClient: rdb}}\n\tstats.Setup(router)\n\n    router.Run(\":8080\")\n}\n```\n\nget the stats via endpoints\n\n`http://localhost:8080/endpoint-usage-stats` for html table\n`http://localhost:8080/endpoint-usage-stats/json` for json\n`http://localhost:8080/endpoint-usage-stats/csv` for csv\n`http://localhost:8080/endpoint-usage-stats/xml` for xml","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamgoroot%2Fgin-endpoint-usage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamgoroot%2Fgin-endpoint-usage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamgoroot%2Fgin-endpoint-usage/lists"}