Skip to content

qwasa-net/putget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

> ./putget -bind "localhost:8900" -files-root "/tmp/putget.files/" -url-root "/"

Use putget

> 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

About

my little go experiment

Topics

Resources

License

Stars

Watchers

Forks

Packages