{"id":19299976,"url":"https://github.com/cloudogu/go-health","last_synced_at":"2025-09-07T17:33:47.139Z","repository":{"id":72236070,"uuid":"129915276","full_name":"cloudogu/go-health","owner":"cloudogu","description":"Health checks for the go programming language","archived":false,"fork":false,"pushed_at":"2018-04-24T11:35:12.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-08-14T19:59:39.033Z","etag":null,"topics":["go","golang","health","healthcheck"],"latest_commit_sha":null,"homepage":null,"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/cloudogu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-04-17T14:15:06.000Z","updated_at":"2019-06-05T10:15:05.000Z","dependencies_parsed_at":"2023-02-25T17:30:38.949Z","dependency_job_id":null,"html_url":"https://github.com/cloudogu/go-health","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cloudogu/go-health","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudogu%2Fgo-health","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudogu%2Fgo-health/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudogu%2Fgo-health/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudogu%2Fgo-health/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudogu","download_url":"https://codeload.github.com/cloudogu/go-health/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudogu%2Fgo-health/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274069024,"owners_count":25217046,"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","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"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","health","healthcheck"],"created_at":"2024-11-09T23:13:19.666Z","updated_at":"2025-09-07T17:33:46.715Z","avatar_url":"https://github.com/cloudogu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-health\n\nHealth checks for the go programming language.\n\n## Usage\n\nFirst we have to create a health check:\n\n### http\n\n```go\nchecker := health.NewHTTPHealthCheckBuilder(\"http://localhost:8080/healthy\").\n    WithMethod(\"POST\").\n    WithHeader(\"Content-Type\", \"text/plain\").\n    WithBasicAuth(\"trillian\", \"tricia123\").\n    WithExpectedStatusCode(204).\n    Build()\n```\n\n### tcp\n\n```go\nchecker := health.NewTCPHealthCheckBuilder(6379).\n  WithHostname(\"redis.hitchhiker.com\").\n  WithTimeout(1 * time.Second).\n  Build()\n```\n\nThan we can wait until the check becomes healthy:\n\n```go\nwatcher := health.NewWatcher()\nerr := watcher.WaitUntilHealthy(checker)\nif err != nil {\n  // check does not become healthy and the timeout is reached\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudogu%2Fgo-health","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudogu%2Fgo-health","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudogu%2Fgo-health/lists"}