https://github.com/qwasa-net/putget
my little go experiment
https://github.com/qwasa-net/putget
Last synced: 21 days ago
JSON representation
my little go experiment
- Host: GitHub
- URL: https://github.com/qwasa-net/putget
- Owner: qwasa-net
- License: mit
- Created: 2020-08-30T06:37:11.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-03-03T07:13:36.000Z (3 months ago)
- Last Synced: 2025-03-03T08:24:29.626Z (3 months ago)
- Language: Go
- Homepage:
- Size: 40 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# putget
## putget — my little **go** experiment
**putget** is a super stupid http service to:
* upload series of files into buckets
* get the most recent file from the bucket
### Run *putget* service
```bash
> ./putget -bind "localhost:8900" -files-root "/tmp/putget.files/" -url-root "/"
```### Use *putget*
```bash> curl -X POST http://localhost:8900/bucket_name/ --data-binary @image1.jpg
> curl -X POST http://localhost:8900/bucket_name/ --data-binary @imageN.jpg
> curl -X POST http://localhost:8900/another_bucket/ --data-binary @imageM.jpg
…
> curl http://localhost:8900/bucket_name/ -O downloaded_image.jpg
> cmp downloaded_image.jpg imageN.jpg
```## etc
* Authorization, limits and access control must be handled in the router/proxy service, e.g. **nginx**.
* DataBase module is not implemented (yet?) — dumb memory map is used
* This is a toy project, not intended for production use.
:wq