{"id":21928732,"url":"https://github.com/austinhartzheim/haptik","last_synced_at":"2026-05-03T09:34:07.801Z","repository":{"id":78136036,"uuid":"275674216","full_name":"austinhartzheim/haptik","owner":"austinhartzheim","description":"Interface for HAProxy control via Unix socket interface","archived":false,"fork":false,"pushed_at":"2020-09-27T17:17:47.000Z","size":73,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-27T11:49:57.466Z","etag":null,"topics":["client","haproxy"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/austinhartzheim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2020-06-28T21:51:21.000Z","updated_at":"2020-09-27T17:17:49.000Z","dependencies_parsed_at":"2023-02-26T04:00:47.280Z","dependency_job_id":null,"html_url":"https://github.com/austinhartzheim/haptik","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austinhartzheim%2Fhaptik","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austinhartzheim%2Fhaptik/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austinhartzheim%2Fhaptik/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austinhartzheim%2Fhaptik/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/austinhartzheim","download_url":"https://codeload.github.com/austinhartzheim/haptik/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244955145,"owners_count":20537904,"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":["client","haproxy"],"created_at":"2024-11-28T22:27:45.826Z","updated_at":"2026-05-03T09:34:07.733Z","avatar_url":"https://github.com/austinhartzheim.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# haptik\n\n[![Build Status](https://travis-ci.org/austinhartzheim/haptik.svg?branch=master)](https://travis-ci.org/austinhartzheim/haptik)\n[![Coverage Status](https://coveralls.io/repos/github/austinhartzheim/haptik/badge.svg?branch=master)](https://coveralls.io/github/austinhartzheim/haptik?branch=master)\n\n\nHAProxy control via Unix sockets.\n\nIssue [commands](https://cbonte.github.io/haproxy-dconv/2.2/management.html#9.3) to HAProxy.\n\n## Examples\nGet the connection permission level:\n```rust\nuse haptik::{ConnectionBuilder, UnixSocketBuilder};\nlet connection = UnixSocketBuilder::default().connect().expect(\"Failed to connect\");\nprintln!(\"Current permission level: {:?}\", connection.level());\n```\n\nGet the list of CLI sockets:\n```rust\nuse haptik::{ConnectionBuilder, UnixSocketBuilder};\nlet connection = UnixSocketBuilder::default().connect().expect(\"Failed to connect\");\nprintln!(\"Sockets: {:?}\", connection.cli_sockets());\n```\n\n## Developing\n1. Start HAProxy via Docker by running this command at the base directory for this project:\n```sh\ndocker run -d -v $(pwd)/examples/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg -v /tmp/socket:/var/run --entrypoint haproxy -p 9999:9999 haproxy:latest -db -f /usr/local/etc/haproxy/haproxy.cfg\n```\n2. Run the test suite. The ignored tests require a running HAProxy instance (configured in step 1).\n```sh\ncargo test\ncargo test -- --ignored\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustinhartzheim%2Fhaptik","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faustinhartzheim%2Fhaptik","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustinhartzheim%2Fhaptik/lists"}