{"id":22553391,"url":"https://github.com/faryon93/handlers","last_synced_at":"2025-06-28T18:06:52.036Z","repository":{"id":57496136,"uuid":"126475369","full_name":"faryon93/handlers","owner":"faryon93","description":"A set of frequently used Go http handlers","archived":false,"fork":false,"pushed_at":"2019-07-24T10:27:39.000Z","size":20,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T10:28:22.115Z","etag":null,"topics":["go","handler","http","middleware"],"latest_commit_sha":null,"homepage":null,"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/faryon93.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":"security.go","support":null}},"created_at":"2018-03-23T11:20:41.000Z","updated_at":"2019-07-24T10:24:56.000Z","dependencies_parsed_at":"2022-09-02T20:50:28.532Z","dependency_job_id":null,"html_url":"https://github.com/faryon93/handlers","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/faryon93/handlers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faryon93%2Fhandlers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faryon93%2Fhandlers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faryon93%2Fhandlers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faryon93%2Fhandlers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/faryon93","download_url":"https://codeload.github.com/faryon93/handlers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faryon93%2Fhandlers/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262473899,"owners_count":23316897,"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":["go","handler","http","middleware"],"created_at":"2024-12-07T18:09:23.074Z","updated_at":"2025-06-28T18:06:51.984Z","avatar_url":"https://github.com/faryon93.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Handlers\n[![Documentation](https://godoc.org/github.com/faryon93/handlers?status.svg)](http://godoc.org/github.com/faryon93/handlers)\n[![Go Report Card](https://goreportcard.com/badge/github.com/faryon93/handlers)](https://goreportcard.com/report/github.com/faryon93/handlers)\n[![Last Release](https://img.shields.io/github/release/faryon93/handlers.svg)](https://github.com/faryon93/handlers/releases)\n\nA set of frequently used Go http handlers and middleware functions.\n\n    # download library\n    $: go get github.com/faryon93/handlers\n\n    # place on top of your go file\n    import \"github.com/faryon93/handlers\"\n\n## Content: Handlers\n\n| Handler       | Description                                                         |\n| ------------- | ------------------------------------------------------------------- |\n| Forbidded()   | Default 403 forbidden handler.                                      |\n| NoRobots()    | Writes a robots.txt file, which disallows the access to everything. |\n\n## Content: Adapters\n\nAdapter functions can be chained with the real handler function or other adapter functions.\n\n| Adapter                   | Description                                                       |\n| ------------------------- | ----------------------------------------------------------------- |\n| CORS(age, orgins)         | Configures gorilla/handlers/cors in a convenient way              |\n| Benchmark()               | Logs the execution time of every request using logrus             |\n| Enabled(en)               | Denys access if en is false                                       |\n| Keyed(reqKey)             | Restrict access to requests, having param \"key\" matching reqKey   |\n| Paged(limit)              | Paging: Parses skip and limit from query parameters               |\n| Recaptcha(key)            | Restricts access if recaptcha is invalid                          |\n| RestrictOrigin(orgins...) | Rejects all request having an origin which is not on the list     |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaryon93%2Fhandlers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffaryon93%2Fhandlers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaryon93%2Fhandlers/lists"}