{"id":13786701,"url":"https://github.com/beatlabs/patron","last_synced_at":"2025-05-11T22:33:23.016Z","repository":{"id":35407199,"uuid":"168350577","full_name":"beatlabs/patron","owner":"beatlabs","description":"Microservice framework following best cloud practices with a focus on productivity.","archived":false,"fork":true,"pushed_at":"2024-11-15T05:37:21.000Z","size":39080,"stargazers_count":123,"open_issues_count":15,"forks_count":67,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-11-15T06:26:43.871Z","etag":null,"topics":["framework","go","golang","microservice"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"mantzas/patron","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/beatlabs.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":"CODEOWNERS","security":null,"support":null}},"created_at":"2019-01-30T13:49:54.000Z","updated_at":"2024-11-15T05:37:23.000Z","dependencies_parsed_at":"2023-02-16T23:15:25.778Z","dependency_job_id":null,"html_url":"https://github.com/beatlabs/patron","commit_stats":null,"previous_names":[],"tags_count":100,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beatlabs%2Fpatron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beatlabs%2Fpatron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beatlabs%2Fpatron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beatlabs%2Fpatron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beatlabs","download_url":"https://codeload.github.com/beatlabs/patron/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225105767,"owners_count":17421791,"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":["framework","go","golang","microservice"],"created_at":"2024-08-03T19:01:29.433Z","updated_at":"2024-11-17T23:30:21.761Z","avatar_url":"https://github.com/beatlabs.png","language":"Go","readme":"# patron ![CI](https://github.com/beatlabs/patron/workflows/CI/badge.svg) [![codecov](https://codecov.io/gh/beatlabs/patron/graph/badge.svg?token=sxY15rXW1X)](https://codecov.io/gh/beatlabs/patron) [![Go Report Card](https://goreportcard.com/badge/github.com/beatlabs/patron)](https://goreportcard.com/report/github.com/beatlabs/patron) [![GoDoc](https://godoc.org/github.com/beatlabs/patron?status.svg)](https://godoc.org/github.com/beatlabs/patron) ![GitHub release](https://img.shields.io/github/release/beatlabs/patron.svg)[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fbeatlabs%2Fpatron.svg?type=shield\u0026issueType=license)](https://app.fossa.com/projects/git%2Bgithub.com%2Fbeatlabs%2Fpatron?ref=badge_shield\u0026issueType=license)\n\nPatron is a framework for creating microservices, originally created by Sotiris Mantzaris (\u003chttps://github.com/mantzas\u003e). This fork is maintained by Beat Engineering (\u003chttps://thebeat.co\u003e)\n\n`Patron` is french for `template` or `pattern`, but it means also `boss` which we found out later (no pun intended).\n\nThe entry point of the framework is the `Service`. The `Service` uses `Components` to handle the processing of sync and async requests. The `Service` starts by default an `HTTP Component` which hosts the `/debug`, `/alive`, `/ready` and `/metrics` endpoints. Any other endpoints will be added to the default `HTTP Component` as `Routes`. Alongside `Routes` one can specify middleware functions to be applied ordered to all routes as `MiddlewareFunc`. The service sets up by default logging with `slog`, tracing and metrics with [OpenTelemetry](https://opentelemetry.io).\n\n`Patron` provides abstractions for the following functionality of the framework:\n\n- service, which orchestrates everything\n- components and processors, which provide an abstraction of adding processing functionality to the service\n  - asynchronous message processing (RabbitMQ, Kafka, AWS SQS)\n  - synchronous processing (HTTP)\n  - gRPC support\n- metrics and tracing\n- logging\n\n`Patron` provides the same defaults for making the usage as simple as possible.\n`Patron` needs Go 1.22 as a minimum.\n\n## Code coverage\n\n![Code coverage](https://codecov.io/gh/beatlabs/patron/graphs/icicle.svg?token=sxY15rXW1X)\n\n## Table of Contents\n\n- [Code of Conduct](docs/CodeOfConduct.md)\n- [Contribution Guidelines](docs/ContributionGuidelines.md)\n- [Acknowledgments](docs/ACKNOWLEDGMENTS.md)\n","funding_links":[],"categories":["Web框架","Web Frameworks","web框架","web框架`web 框架`","Utility"],"sub_categories":["实用程序/Miscellaneous","HTTP Clients","Utility/Miscellaneous","版本控制","版本控制`版本控制相关库`","Fail injection"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeatlabs%2Fpatron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeatlabs%2Fpatron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeatlabs%2Fpatron/lists"}