{"id":20210800,"url":"https://github.com/bluekeyes/srcsnk","last_synced_at":"2025-03-03T10:41:51.031Z","repository":{"id":146499356,"uuid":"123878980","full_name":"bluekeyes/srcsnk","owner":"bluekeyes","description":"Simple test server that acts as a data source or sink","archived":false,"fork":false,"pushed_at":"2018-03-12T06:05:06.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-13T21:33:36.631Z","etag":null,"topics":["golang","testing"],"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/bluekeyes.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-03-05T07:06:48.000Z","updated_at":"2018-03-05T07:08:11.000Z","dependencies_parsed_at":"2023-07-14T05:30:40.767Z","dependency_job_id":null,"html_url":"https://github.com/bluekeyes/srcsnk","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/bluekeyes%2Fsrcsnk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluekeyes%2Fsrcsnk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluekeyes%2Fsrcsnk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluekeyes%2Fsrcsnk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bluekeyes","download_url":"https://codeload.github.com/bluekeyes/srcsnk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241652921,"owners_count":19997574,"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":["golang","testing"],"created_at":"2024-11-14T05:49:28.868Z","updated_at":"2025-03-03T10:41:51.027Z","avatar_url":"https://github.com/bluekeyes.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# srcsnk\n\nA simple server that sends and receives arbitrary amounts of data at arbitrary\nspeeds. Useful for testing proxies and clients.\n\n## Installation\n\n    go get -u github.com/bluekeyes/srcsnk\n\n## Usage\n\nRun `srcsnk` to start the server. Once the server is running, you can download\na file at any path:\n\n    $ curl localhost:8000/an/arbitrary/file.bin?size=10M -o file.bin\n\nOr upload a file to any path:\n\n    $ curl -T file.bin localhost:8000/an/arbitrary/path/file.bin\n\nAll the received data is discarded by the server.\n\nEach endpoint accepts several paramters described below.\n\n### Paramters\n\n- `size` – (download only) controls the size of the downloaded file. It takes\n  the suffixes `B`, `K`, `M`, and `G` for bytes, kilobytes, megabytes, or\n  gigabytes, respectively; these have the same meaning as in the `dd` command.\n\n- `rate` – controls the download or upload rate, in bytes per second. It\n  accepts the same suffixes as the `size` paramter.\n\n- `delayPre` – the amount of time to wait before processing the request,\n  including reading the request body. It accepts any value allowed by\n  [`time.ParseDuration`][].\n\n- `delayRes` – the amount of time to wait before sending the initial response\n  headers. It accepts any value allowed by [`time.ParseDuration`][]. For\n  downloads, `delayPre` and `delayRes` are interchangeable.\n\n[`time.ParseDuration`]: https://golang.org/pkg/time/#ParseDuration\n\n### Flags\n\nThe command accepts the following flags:\n\n- `-address` – sets the address (IP and port) the server listens on; defaults to `127.0.0.1:8000`\n\n- `-log-file` – sets the file where log output is written; if not provided, logs are written to stdout\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluekeyes%2Fsrcsnk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbluekeyes%2Fsrcsnk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluekeyes%2Fsrcsnk/lists"}