{"id":23131175,"url":"https://github.com/friendlycaptcha/hareply","last_synced_at":"2025-04-04T07:27:35.612Z","repository":{"id":233824353,"uuid":"785218188","full_name":"FriendlyCaptcha/hareply","owner":"FriendlyCaptcha","description":"HAProxy agent-check responder","archived":false,"fork":false,"pushed_at":"2024-04-17T11:32:51.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-05-01T09:47:39.832Z","etag":null,"topics":["agent-check","haproxy"],"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/FriendlyCaptcha.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":"2024-04-11T12:47:58.000Z","updated_at":"2024-06-19T12:34:26.701Z","dependencies_parsed_at":null,"dependency_job_id":"2ddc57a9-dcab-444c-9013-a1a65587548f","html_url":"https://github.com/FriendlyCaptcha/hareply","commit_stats":null,"previous_names":["friendlycaptcha/hareply"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FriendlyCaptcha%2Fhareply","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FriendlyCaptcha%2Fhareply/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FriendlyCaptcha%2Fhareply/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FriendlyCaptcha%2Fhareply/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FriendlyCaptcha","download_url":"https://codeload.github.com/FriendlyCaptcha/hareply/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247137665,"owners_count":20889909,"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":["agent-check","haproxy"],"created_at":"2024-12-17T11:12:13.961Z","updated_at":"2025-04-04T07:27:35.592Z","avatar_url":"https://github.com/FriendlyCaptcha.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hareply\n`hareply` is a small tool that replies to [HAProxy's `agent-check`](https://www.haproxy.com/documentation/haproxy-configuration-tutorials/service-reliability/health-checks/#agent-checks) with the contents of a given file.\n\n## CLI usage\n\n```shell\n# Print help\nhareply -h\n\n# Print help for serve command\nhareply serve -h\n\n# Print version information\nhareply version\n\n# Serve from port 8020 and a specific path.\nhareply serve -f /some/path/to/agentstate -p 8020\n\n# Serve from port 8442 and filepath `agentstate` (the defaults).\nhareply serve\n```\n\n## As a library\n`hareply` can also be used as a library, see the godoc for the `hareply` package.\n\n## Error handling\n\n* The response \"`agentstate`\" file is read on startup, if that fails the program will exit.\n* The file is read again on any TCP connection, if that fails the last known file contents are used.\n* If the value in the file is not a valid response for `agent-check`, the last valid response is returned instead.\n\n## Release\nReleases are built using `goreleaser`, see the [`goreleaser.yml`](./goreleaser.yml) file.\n\nTo mint a (test) release locally, install [goreleaser](https://goreleaser.com/install/) and run\n```shell\ngoreleaser --snapshot --skip=publish --clean\n```\n\n## License\n[MIT](./LICENSE.md) [🎶](https://suno.com/song/da6d4a83-1001-4694-8c28-648a6e8bad0a).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriendlycaptcha%2Fhareply","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffriendlycaptcha%2Fhareply","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriendlycaptcha%2Fhareply/lists"}