{"id":34811231,"url":"https://github.com/bufbuild/interrupt-go","last_synced_at":"2026-05-25T09:33:56.950Z","repository":{"id":292325905,"uuid":"980526021","full_name":"bufbuild/interrupt-go","owner":"bufbuild","description":"A small helper library to handle interrupt signals in Go programs.","archived":false,"fork":false,"pushed_at":"2025-11-24T05:19:37.000Z","size":18,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2026-01-31T14:41:19.407Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bufbuild.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","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":"2025-05-09T09:18:42.000Z","updated_at":"2026-01-23T22:37:56.000Z","dependencies_parsed_at":"2025-05-09T18:30:55.314Z","dependency_job_id":null,"html_url":"https://github.com/bufbuild/interrupt-go","commit_stats":null,"previous_names":["bufbuild/interrupt-go"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/bufbuild/interrupt-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bufbuild%2Finterrupt-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bufbuild%2Finterrupt-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bufbuild%2Finterrupt-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bufbuild%2Finterrupt-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bufbuild","download_url":"https://codeload.github.com/bufbuild/interrupt-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bufbuild%2Finterrupt-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33469410,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-25T06:32:55.349Z","status":"ssl_error","status_checked_at":"2026-05-25T06:32:35.322Z","response_time":57,"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":[],"created_at":"2025-12-25T12:53:58.037Z","updated_at":"2026-05-25T09:33:56.939Z","avatar_url":"https://github.com/bufbuild.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# interrupt-go\n\n[![Build](https://github.com/bufbuild/interrupt-go/actions/workflows/ci.yaml/badge.svg?branch=main)](https://github.com/bufbuild/interrupt-go/actions/workflows/ci.yaml)\n[![Report Card](https://goreportcard.com/badge/buf.build/go/interrupt)](https://goreportcard.com/report/buf.build/go/interrupt)\n[![GoDoc](https://pkg.go.dev/badge/buf.build/go/interrupt.svg)](https://pkg.go.dev/buf.build/go/interrupt)\n[![Slack](https://img.shields.io/badge/slack-buf-%23e01563)](https://buf.build/links/slack)\n\nThis is a small helper Go library that exposes two types:\n\n- `interrupt.Signals`: All OS-specific interrupt signals. This extends `os.Interrupt` with `syscall.SIGTERM` in unix-like systems.\n- `interrupt.Handle`: A simple function to provide interrupt signal handling on a `context.Context`.\n\nThis will typically be used at the highest levels of an application:\n\n```go\nfunc main() {\n    // Handle returns a copy of the parent Context that is marked done\n    // when an interrupt signal arrives or when the parent Context's\n    // Done channel is closed, whichever happens first.\n    //\n    // Signal handling is unregistered automatically by this function when the\n    // first interrupt signal arrives, which will restore the default interrupt\n    // signal behavior of Go programs (to exit).\n\n    ctx := interrupt.Handle(context.Background())\n\n    // Use the ctx throughout the rest of your application.\n    // ...\n}\n```\n\n## Status: Stable\n\nThis library is stable.\n\n## Legal\n\nOffered under the [Apache 2 license](https://github.com/bufbuild/interrupt-go/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbufbuild%2Finterrupt-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbufbuild%2Finterrupt-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbufbuild%2Finterrupt-go/lists"}