{"id":20691136,"url":"https://github.com/mohammadne/middleman","last_synced_at":"2025-06-14T21:06:07.071Z","repository":{"id":144448988,"uuid":"388846223","full_name":"mohammadne/middleman","owner":"mohammadne","description":null,"archived":false,"fork":false,"pushed_at":"2021-09-23T06:36:35.000Z","size":180,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-03-11T01:29:09.819Z","etag":null,"topics":[],"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/mohammadne.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":"2021-07-23T15:29:28.000Z","updated_at":"2023-06-29T17:16:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"b9f088af-a939-43c3-9d01-45f36b75bb0f","html_url":"https://github.com/mohammadne/middleman","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mohammadne/middleman","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadne%2Fmiddleman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadne%2Fmiddleman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadne%2Fmiddleman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadne%2Fmiddleman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mohammadne","download_url":"https://codeload.github.com/mohammadne/middleman/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadne%2Fmiddleman/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259884469,"owners_count":22926444,"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-11-16T23:15:22.497Z","updated_at":"2025-06-14T21:06:07.046Z","avatar_url":"https://github.com/mohammadne.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- LOGO --\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/logo.png\" /\u003e\n\u003c/p\u003e\n\n\u003c!-- BADGES --\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/release/mohammadne/middleman.svg?style=for-the-badge\"\u003e\n  \u003cimg src=\"https://img.shields.io/codecov/c/gh/mohammadne/middleman?logo=codecov\u0026style=for-the-badge\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/license/mohammadne/middleman?style=for-the-badge\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/stars/mohammadne/middleman?style=for-the-badge\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/downloads/mohammadne/middleman/total.svg?style=for-the-badge\"\u003e\n\u003c/p\u003e\n\n\u003c!-- TITLE --\u003e\n# MIDDLE MAN\n\u003e `MIDDLE MAN` will simulate a real world proxy server that clients\n\u003e will request to the proxy server (reverse proxy) and as its role is\n\u003e load-balancing between servers and caching some requests based on\n\u003e logic in proxy server\n\n## How to run\n\n- run servers in `first` terminal\n\n  ``` zsh\n  go run cmd/root.go servers\n  ```\n\n- run proxy in `second` terminal\n\n  ``` zsh\n  go run cmd/root.go proxy\n  ```\n\n- run clients in `third` terminal\n\n  ``` zsh\n  go run cmd/root.go clients\n  ```\n\n- post a test `cURL` body\n\n  ``` zsh\n  curl --header \"Content-Type: application/json\" \\\n  --request POST --data '{\"key\":\"key\",\"value\":\"value\"}' \\\n  http://localhost:8090/objects\n  ```\n\n- get specific hashId's body with `cURL`\n\n  ``` zsh\n  curl --header \"Content-Type: application/json\" \\\n  --request GET http://localhost:8090/objects/hashId\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohammadne%2Fmiddleman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohammadne%2Fmiddleman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohammadne%2Fmiddleman/lists"}