{"id":15502967,"url":"https://github.com/evuez/exsozu","last_synced_at":"2025-04-22T23:21:04.393Z","repository":{"id":62429457,"uuid":"97857948","full_name":"evuez/exsozu","owner":"evuez","description":"A resilient Elixir client for the Sōzu HTTP reverse proxy.","archived":false,"fork":false,"pushed_at":"2020-11-20T08:36:46.000Z","size":49,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-20T14:17:45.348Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/exsozu","language":"Elixir","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/evuez.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":"2017-07-20T16:44:42.000Z","updated_at":"2023-09-26T06:49:24.000Z","dependencies_parsed_at":"2022-11-01T20:03:19.119Z","dependency_job_id":null,"html_url":"https://github.com/evuez/exsozu","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evuez%2Fexsozu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evuez%2Fexsozu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evuez%2Fexsozu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evuez%2Fexsozu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evuez","download_url":"https://codeload.github.com/evuez/exsozu/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250338487,"owners_count":21414196,"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":[],"created_at":"2024-10-02T09:11:42.706Z","updated_at":"2025-04-22T23:21:04.360Z","avatar_url":"https://github.com/evuez.png","language":"Elixir","readme":"# ExSozu\n\n[![CircleCI](https://circleci.com/gh/evuez/exsozu.svg?style=svg)](https://circleci.com/gh/evuez/exsozu)\n\nA resilient Elixir client for the [Sōzu HTTP reverse proxy](https://github.com/sozu-proxy/sozu).\n\nAnswers are sent to the calling process via `Process.send/3` and should be handled in a `handle_info/2` or using `receive/1` (the messages are in this format: `{:answer, %ExSozu.Answer{}}`).\n\nThe documentation is available at [https://hexdocs.pm/exsozu](https://hexdocs.pm/exsozu).\n\n## Installation\n\nAdd `exsozu` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [{:exsozu, \"~\u003e 0.4.0\"}]\nend\n```\n\n## Examples\n\n```elixir\niex\u003e ExSozu.Command.list_workers() |\u003e ExSozu.command()\niex\u003e receive do: (m -\u003e m)\n{:answer,\n %ExSozu.Answer{data: %{\"data\" =\u003e [%{\"id\" =\u003e 0, \"pid\" =\u003e 9,\n   \"run_state\" =\u003e \"RUNNING\"}], \"type\" =\u003e \"WORKERS\"}, id: \"oA7iu2qVAL2JNkBg\",\n message: \"\", status: :ok}}\n```\n\nOr, using `ExSozu.pipeline/1` to send multiple commands at once:\n\n```elixir\niex\u003e [ExSozu.Command.list_workers(), ExSozu.Command.status()] |\u003e ExSozu.pipeline()\niex\u003e receive do: (m -\u003e m)\n{:answer,\n %ExSozu.Answer{data: %{\"data\" =\u003e [%{\"id\" =\u003e 0, \"pid\" =\u003e 9,\n   \"run_state\" =\u003e \"RUNNING\"}], \"type\" =\u003e \"WORKERS\"}, id: \"...\",\n message: \"\", status: :ok}}\niex\u003e receive do: (m -\u003e m)\n{:answer,\n %ExSozu.Answer{data: nil,\n   id: \"...\",\n   message: \"\", status: :ok}}\n```\n\nI also made a demo interface using ExSozu: [https://github.com/evuez/sozui](https://github.com/evuez/sozui).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevuez%2Fexsozu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevuez%2Fexsozu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevuez%2Fexsozu/lists"}