{"id":13811881,"url":"https://github.com/daangn/lifecycle","last_synced_at":"2026-03-04T16:02:03.192Z","repository":{"id":97006915,"uuid":"442990178","full_name":"daangn/lifecycle","owner":"daangn","description":"go application lifecycle manager","archived":false,"fork":false,"pushed_at":"2022-03-17T14:56:52.000Z","size":13,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":21,"default_branch":"main","last_synced_at":"2025-03-01T02:44:25.972Z","etag":null,"topics":["go","golang","graceful-shutdown"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daangn.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}},"created_at":"2021-12-30T06:42:22.000Z","updated_at":"2022-03-17T15:00:59.000Z","dependencies_parsed_at":"2024-01-13T15:37:22.587Z","dependency_job_id":"7d815755-aff8-48bc-9f57-fbe4ff0df15e","html_url":"https://github.com/daangn/lifecycle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/daangn/lifecycle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daangn%2Flifecycle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daangn%2Flifecycle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daangn%2Flifecycle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daangn%2Flifecycle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daangn","download_url":"https://codeload.github.com/daangn/lifecycle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daangn%2Flifecycle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30085815,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T15:40:14.053Z","status":"ssl_error","status_checked_at":"2026-03-04T15:40:13.655Z","response_time":59,"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":["go","golang","graceful-shutdown"],"created_at":"2024-08-04T04:00:37.597Z","updated_at":"2026-03-04T16:02:03.130Z","avatar_url":"https://github.com/daangn.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Lifecycle\n\nGolang application lifecycle manager.\n\n**Note: This is not an official Daangn project**\n\n# Usage\n\n```go\npackage main\n\nimport (\n\t\"net\"\n\t\"net/http\"\n\n\t\"github.com/daangn/lifecycle\"\n\t\"google.golang.org/grpc\"\n)\n\ntype yourWorkerApp interface{\n\tStart() error\n\tGracefulStop()\n}\n\nfunc main() {\n\tvar (\n\t\tworker     yourWorkerApp\n\t\thttpServer *http.Server\n\t\tgrpcServer *grpc.Server\n\t\tgrpcLis    net.Listener\n\t)\n\n\t// ...\n\n\tif err := lifecycle.Run(\n\t\tlifecycle.WithGRPC(grpcServer, grpcLis),\n\t\tlifecycle.WithHTTP(httpServer),\n\t\tlifecycle.WithApp(worker),\n\t); err != nil {\n\t\tpanic(err)\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaangn%2Flifecycle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaangn%2Flifecycle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaangn%2Flifecycle/lists"}