{"id":19383337,"url":"https://github.com/mdouchement/middlewarex","last_synced_at":"2026-02-21T19:02:28.097Z","repository":{"id":34710533,"uuid":"152797899","full_name":"mdouchement/middlewarex","owner":"mdouchement","description":"Bunch of middlewares for Echo framework","archived":false,"fork":false,"pushed_at":"2026-02-21T11:37:57.000Z","size":50,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-21T17:49:46.038Z","etag":null,"topics":["crud","echo","echo-framework","golang","middleware","paseto","versioning"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mdouchement.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,"zenodo":null}},"created_at":"2018-10-12T19:21:58.000Z","updated_at":"2026-02-21T11:37:09.000Z","dependencies_parsed_at":"2023-01-15T08:42:03.911Z","dependency_job_id":"7b5432c1-1d04-4719-b81f-cefacc64eabe","html_url":"https://github.com/mdouchement/middlewarex","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/mdouchement/middlewarex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdouchement%2Fmiddlewarex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdouchement%2Fmiddlewarex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdouchement%2Fmiddlewarex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdouchement%2Fmiddlewarex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdouchement","download_url":"https://codeload.github.com/mdouchement/middlewarex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdouchement%2Fmiddlewarex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29690651,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T18:18:25.093Z","status":"ssl_error","status_checked_at":"2026-02-21T18:18:22.435Z","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":["crud","echo","echo-framework","golang","middleware","paseto","versioning"],"created_at":"2024-11-10T09:25:37.266Z","updated_at":"2026-02-21T19:02:28.062Z","avatar_url":"https://github.com/mdouchement.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Middlewarex\n\n[![CircleCI](https://circleci.com/gh/mdouchement/middlewarex/tree/master.svg?style=shield)](https://circleci.com/gh/mdouchement/middlewarex/tree/master)\n[![cover.run](https://cover.run/go/github.com/mdouchement/middlewarex.svg?style=flat\u0026tag=golang-1.10)](https://cover.run/go?tag=golang-1.10\u0026repo=github.com%2Fmdouchement%2Fmiddlewarex)\n[![Go Report Card](https://goreportcard.com/badge/github.com/mdouchement/middlewarex)](https://goreportcard.com/report/github.com/mdouchement/middlewarex)\n[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](https://godoc.org/github.com/mdouchement/middlewarex)\n[![License](https://img.shields.io/github/license/mdouchement/middlewarex.svg)](http://opensource.org/licenses/MIT)\n\nBunch of middlewares for [Labstack Echo](https://github.com/labstack/echo).\n\n## Requirements\n\n- Echo 4.x.x\n\n## Usage\n### CRUD\n\nUsed for creating RESTful API entrypoints according the given struct.\n\n### Versioning\n\nThis middleware must be set as a _pre_ middleware.\n\nDoing the following request:\n```\nX-Application-Version: vnd.github.v3\nGET /toto\n```\n\nwill be rewritten as:\n```\nGET /v3/toto\n```\n\nBechmarks\n```\n[middlewarex]\u003e\u003e go test -bench .\ngoos: darwin\ngoarch: amd64\npkg: github.com/mdouchement/middlewarex\nBenchmarkVersioningRW-8     \t  300000\t     50608 ns/op   // With header rewriting\nBenchmarkVersioningVRwM-8   \t 5000000\t       362 ns/op   // Just versioned routes with the Versioning middleware present\nBenchmarkVersioningVR-8     \t10000000\t       215 ns/op   // Just versioned routes without the Versioning middleware\nPASS\nok  \tgithub.com/mdouchement/middlewarex\t19.850s\n```\n\nIf the header is not specified, no rewrittes are applied.\n\n## License\n\n**MIT**\n\n\n## Contributing\n\nAll PRs are welcome.\n\n1. Fork it\n2. Create your feature branch (git checkout -b my-new-feature)\n3. Commit your changes (git commit -am 'Add some feature')\n5. Push to the branch (git push origin my-new-feature)\n6. Create new Pull Request\n\nAs possible, run the following commands to format and lint the code:\n\n```sh\n# Format\nfind . -name '*.go' -not -path './vendor*' -exec gofmt -s -w {} \\;\n\n# Lint\ngolangci-lint run -c .golangci.yml\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdouchement%2Fmiddlewarex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdouchement%2Fmiddlewarex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdouchement%2Fmiddlewarex/lists"}