{"id":19140084,"url":"https://github.com/circleci/ex","last_synced_at":"2025-04-07T09:20:14.860Z","repository":{"id":37446775,"uuid":"371658296","full_name":"circleci/ex","owner":"circleci","description":"Common Go packages for the execution teams","archived":false,"fork":false,"pushed_at":"2024-05-22T17:16:20.000Z","size":3246,"stargazers_count":22,"open_issues_count":3,"forks_count":16,"subscribers_count":70,"default_branch":"main","last_synced_at":"2024-05-22T20:26:21.646Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/circleci/ex","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/circleci.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-28T10:03:58.000Z","updated_at":"2024-05-30T18:16:50.921Z","dependencies_parsed_at":"2023-10-12T02:43:35.776Z","dependency_job_id":"9cdff944-b7f9-4758-9a66-771980d43578","html_url":"https://github.com/circleci/ex","commit_stats":null,"previous_names":[],"tags_count":661,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/circleci%2Fex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/circleci%2Fex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/circleci%2Fex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/circleci%2Fex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/circleci","download_url":"https://codeload.github.com/circleci/ex/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247622983,"owners_count":20968575,"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":[],"created_at":"2024-11-09T07:16:12.552Z","updated_at":"2025-04-07T09:20:14.822Z","avatar_url":"https://github.com/circleci.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go service building blocks\nThis repository contains a collection of packages designed to aid building\nreliable, observable, zero-downtime services using Go.\n\n## Documentation\n\nBrowse the docs at [pkg.go.dev](https://pkg.go.dev/github.com/circleci/ex).\nSee example / template repo [here](https://github.com/circleci/ex-service-template).\n\n## What is in here?\n- `config/o11y` Wiring code for the `o11y` package.\n- `config/secret` Don't store your secrets in a string that can be accidentally logged.\n  Use a `secret.String` instead.\n- `datadog` A basic Datadog API client for retrieving metrics back from Datadog.\n- `db` Common patterns using when talking to an RDBMS. Only supports PostgreSQL at present.\n- `httpclient` A simple HTTP client that adds observability and resilience to the standard\n  Go HTTP client.\n- `httpclient/dnscache` A simple DNS cache for use with the HTTP client.\n- `httpserver` Starting and stopping the standard Go http server cleanly.\n- `httpserver/ginrouter` A common base for configuring a Gin router instance.\n- `httpserver/healthcheck` A healthcheck HTTP server that can accept all the checks from a `system`.\n- `mongoex` **Experimental** Common patterns using when talking to MongoDB.\n- `o11y` Observability that is currently backed by Honeycomb. It also supports outputting\n  trace data as JSON and plain or colored text output.\n- `o11y/honeycomb` The honeycomb-backed implementation of `o11y`.\n- `o11y/wrappers/o11ygin` `o11y` middleware for the Gin router.\n- `o11y/wrappers/o11ynethttp` `o11y` middleware for the standard Go HTTP server.\n- `rabbit` **Experimental** RabbitMQ publishing client.\n- `redis` Wiring and observability for Redis.\n- `system` Manage the startup, running, metrics and shutdown of a Go service.\n- `releases/compiler` Compile your Go binaries in a consistent way.\n- `releases/releaser` Release your Go binaries in a consistent way.\n- `rundef` automatically calculates and sets standard runtime configuration options\n- `termination` A handler to aid signal based service termination. (Used internally by\n  the `system` package).\n- `testing/compiler` At CircleCI we aim to acceptance test whole compiled binaries. This\n  package lets us do that.\n- `testing/dbfixture` Get a resettable unique database for each test.\n- `testing/download` Download releases of binaries for using in end to end service testing.\n- `testing/fakemetrics` A fake recording `o11y` metrics implementation.\n- `testing/fakestatsd` A recording statsd server that will listen on a local UDP port.\n- `testing/httprecorder` Record HTTP requests inside an HTTP server, and search them.\n- `testing/kongtest` If you are using [kong](https://github.com/alecthomas/kong) for your\n  CLI parsing, this helps in writing golden tests for the CLI definition.\n- `testing/miniofixture` Get a temporary bucket to put your objects in.\n- `testing/mongofixture` Get an isolated Mongo database for your tests, so they don't interfere.\n- `testing/rabbitfixture` Get an isolated RabbitMQ VHost for your tests, so they don't interfere.\n- `testing/redisfixture` Get an isolated Redis DB for your tests, so they don't interfere.\n- `testing/releases` Helper to determine which binaries to download for end to end tests.\n- `testing/runner` Run a binary in an acceptance test (scan output for ports, wait for start). \n- `testing/testcontext` Setup a background context that includes `o11y`.\n- `worker` Run a service worker loop with observability and back-off for no work found.\n\n## Who is this for?\nThese packages are intended to be used internally at CircleCI. While this code is licenced\npermissively with an MIT licence, this is not a true \"open source\" project, in that there is\nno active community using it. \n\n## No guaranteed API stability\nWhile we do not intentionally aim to break compatibility, we make no promises that we will\nmaintain a stable API if there are good reasons to break it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcircleci%2Fex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcircleci%2Fex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcircleci%2Fex/lists"}