{"id":39448043,"url":"https://github.com/dronezzzko/easyshutdown","last_synced_at":"2026-01-18T04:26:41.818Z","repository":{"id":65695935,"uuid":"596710284","full_name":"dronezzzko/easyshutdown","owner":"dronezzzko","description":"Gracefully shutdown your Go services in just one line","archived":false,"fork":false,"pushed_at":"2023-08-15T08:32:21.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-20T16:32:49.311Z","etag":null,"topics":["go","golang","graceful-shutdown","gracefully","grpc","k8s","kubernetes","microservices","opentelemetry","services"],"latest_commit_sha":null,"homepage":"","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/dronezzzko.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":"2023-02-02T19:15:43.000Z","updated_at":"2023-02-08T22:28:50.000Z","dependencies_parsed_at":"2024-06-20T16:17:33.765Z","dependency_job_id":"7dce039c-4b12-4ca4-b92e-d67851397223","html_url":"https://github.com/dronezzzko/easyshutdown","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dronezzzko/easyshutdown","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dronezzzko%2Feasyshutdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dronezzzko%2Feasyshutdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dronezzzko%2Feasyshutdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dronezzzko%2Feasyshutdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dronezzzko","download_url":"https://codeload.github.com/dronezzzko/easyshutdown/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dronezzzko%2Feasyshutdown/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28529552,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["go","golang","graceful-shutdown","gracefully","grpc","k8s","kubernetes","microservices","opentelemetry","services"],"created_at":"2026-01-18T04:26:41.180Z","updated_at":"2026-01-18T04:26:41.805Z","avatar_url":"https://github.com/dronezzzko.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Go](https://github.com/dronezzzko/easyshutdown/actions/workflows/linters.yml/badge.svg)](https://github.com/dronezzzko/easyshutdown/actions/workflows/linters.yml)\n\n# easyshutdown\nGracefully shutdown your Go services in just one line. \n\nThis package supports: \n- HTTP and HTTPS servers\n- GRPC server\n- OpenTelemetry tracers\n- And more\n\n## Usage\n### Simple example\n```go\npackage main\n\nimport (\n\t\"log\"\n\t\"net/http\"\n\n\tes \"github.com/dronezzzko/easyshutdown\"\n)\n\nfunc main() {\n\tsrv := \u0026http.Server{\n\t\tAddr: \":8080\",\n\t}\n\n\tgo func() {\n\t\tlog.Println(\"starting HTTP server\", srv.Addr)\n\n\t\tif err := srv.ListenAndServe(); err != nil {\n\t\t\tlog.Fatalf(\"HTTP server stopped: %s\\n\", err.Error())\n\t\t}\n\t}()\n\n\tsd, _ := es.NewShutdown(\n\t\tes.WithHTTPServer(srv),\n\t)\n\tsd.Graceful()\n}\n```\n\n```terminal\ngo run .\n```\n\nPress ``ctrl+c``:\n```\n2023/02/04 19:25:04 starting HTTP server :8080\neasyshutdown 2023/02/04 19:25:05 Shutting down HTTP/HTTPS server\n2023/02/04 19:25:08 HTTP server stopped: http: Server closed\nexit status 1\n```\n\nAlso see [options.go](options.go) for all available options and supported services.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdronezzzko%2Feasyshutdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdronezzzko%2Feasyshutdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdronezzzko%2Feasyshutdown/lists"}