{"id":20388583,"url":"https://github.com/efureev/go-shutdown","last_synced_at":"2026-05-07T23:08:15.833Z","repository":{"id":57510882,"uuid":"238411484","full_name":"efureev/go-shutdown","owner":"efureev","description":"Golang app shutdown","archived":false,"fork":false,"pushed_at":"2020-02-08T13:27:54.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-15T09:02:40.365Z","etag":null,"topics":["graceful-shutdown","shutdown"],"latest_commit_sha":null,"homepage":null,"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/efureev.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}},"created_at":"2020-02-05T09:22:17.000Z","updated_at":"2022-03-16T19:20:21.000Z","dependencies_parsed_at":"2022-09-26T17:51:01.398Z","dependency_job_id":null,"html_url":"https://github.com/efureev/go-shutdown","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efureev%2Fgo-shutdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efureev%2Fgo-shutdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efureev%2Fgo-shutdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efureev%2Fgo-shutdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/efureev","download_url":"https://codeload.github.com/efureev/go-shutdown/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241940541,"owners_count":20045878,"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":["graceful-shutdown","shutdown"],"created_at":"2024-11-15T03:11:41.140Z","updated_at":"2026-05-07T23:08:10.794Z","avatar_url":"https://github.com/efureev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Go package](https://github.com/efureev/go-shutdown/workflows/Go%20package/badge.svg?branch=master)\n[![Build Status](https://travis-ci.com/efureev/go-shutdown.svg?branch=master)](https://travis-ci.com/efureev/go-shutdown)\n[![Go Report Card](https://goreportcard.com/badge/github.com/efureev/go-shutdown)](https://goreportcard.com/report/github.com/efureev/go-shutdown)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/b9b3b425d3b34069a4094ef99a982a85)](https://www.codacy.com/manual/efureev/go-shutdown?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=efureev/go-shutdown\u0026amp;utm_campaign=Badge_Grade)\n[![Maintainability](https://api.codeclimate.com/v1/badges/b5c1678bafd0687f3070/maintainability)](https://codeclimate.com/github/efureev/go-shutdown/maintainability)\n\n# Shutdown \n\nIt's a package for graceful shutdown your app or process\n\n## Install\n\n```bash\ngo get -u github.com/efureev/go-shutdown\n```\n\nGolang app shutdown.\n\n## Examples\n\n```go\nimport \"github.com/efureev/go-shutdown\"\n\nfunc main() {\n\t//..\n    \n    shutdown.Wait()\n}\n```\n\n```go\nimport \"github.com/efureev/go-shutdown\"\n\nfunc main() {\n\t//..\n    \n    shutdown.WaitWithLogger(logger, syscall.SIGINT, syscall.SIGTERM)\n}\n```\n```go\nimport \"github.com/efureev/go-shutdown\"\n\nfunc main() {\n\t//..\n    \n    shutdown.\n        OnDestroy(func() {\n            module.processing.EndJobListen()\n        }).\n        SetLogger(module.Log()).\n        Wait()\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fefureev%2Fgo-shutdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fefureev%2Fgo-shutdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fefureev%2Fgo-shutdown/lists"}