{"id":18411005,"url":"https://github.com/cloudlena/adapters","last_synced_at":"2025-04-07T10:32:39.446Z","repository":{"id":53762772,"uuid":"84643384","full_name":"cloudlena/adapters","owner":"cloudlena","description":"Golang HTTP middleware following the Adapter Pattern","archived":false,"fork":false,"pushed_at":"2025-03-26T11:00:10.000Z","size":1965,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T23:39:02.631Z","etag":null,"topics":["adapter","go","golang","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudlena.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":"2017-03-11T10:56:02.000Z","updated_at":"2025-03-29T18:38:56.000Z","dependencies_parsed_at":"2023-07-14T03:21:01.137Z","dependency_job_id":"9cc64bb0-1dd1-4dbd-9e3d-04d9432ff59c","html_url":"https://github.com/cloudlena/adapters","commit_stats":null,"previous_names":["mastertinner/adapters"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudlena%2Fadapters","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudlena%2Fadapters/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudlena%2Fadapters/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudlena%2Fadapters/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudlena","download_url":"https://codeload.github.com/cloudlena/adapters/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247637451,"owners_count":20971134,"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":["adapter","go","golang","http","middleware"],"created_at":"2024-11-06T03:34:52.006Z","updated_at":"2025-04-07T10:32:39.143Z","avatar_url":"https://github.com/cloudlena.png","language":"Go","readme":"# Adapters\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/cloudlena/adapters)](https://goreportcard.com/report/github.com/cloudlena/adapters)\n[![Build Status](https://github.com/cloudlena/adapters/actions/workflows/main.yml/badge.svg)](https://github.com/cloudlena/adapters/actions)\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/cloudlena/adapters)](https://pkg.go.dev/github.com/cloudlena/adapters)\n\nAdapters is a collection of useful HTTP middleware or \"Adapters\". They follow the Adapter Pattern described by Mat Ryer in his blog post [Writing middleware in #golang and how Go makes it so much fun.](https://medium.com/@matryer/writing-middleware-in-golang-and-how-go-makes-it-so-much-fun-4375c1246e81)\n\nAdapters can be chained in many ways (e.g. with [Alice](https://github.com/justinas/alice) or [gorilla/mux](https://github.com/gorilla/mux#middleware)) because they all implement `func (http.Handler) http.Handler`.\n\n## Contents\n\nThis package contains the following adapters:\n\n- [Basic Auth](https://github.com/cloudlena/adapters/tree/main/basicauth): Checks for basic authentication\n- [CORS](https://github.com/cloudlena/adapters/tree/main/cors): Adds the necessary CORS headers to a response\n- [Enforce HTTPS](https://github.com/cloudlena/adapters/tree/main/enforcehttps): Redirects HTTP requests to HTTPS\n- [Logging](https://github.com/cloudlena/adapters/tree/main/logging): Logs incoming requests and the time it took to serve them\n- [OAuth 2](https://github.com/cloudlena/adapters/tree/main/oauth2): Checks for OAuth 2 authentication and issues sessions using JWTs\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudlena%2Fadapters","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudlena%2Fadapters","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudlena%2Fadapters/lists"}