https://github.com/thesnowfield/wiredrop
airdrop vs wiredrop!
https://github.com/thesnowfield/wiredrop
golang http
Last synced: 5 months ago
JSON representation
airdrop vs wiredrop!
- Host: GitHub
- URL: https://github.com/thesnowfield/wiredrop
- Owner: TheSnowfield
- License: mit
- Created: 2023-11-16T18:47:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-16T18:53:40.000Z (over 1 year ago)
- Last Synced: 2024-11-13T12:41:24.298Z (7 months ago)
- Topics: golang, http
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## wiredrop
As known as Apple has an AirDrop, so why can't we have a wiredrop?
Yeah, this repo brings us wiredrop! :chaos laugh:wiredrop is written in Golang, fast and light-weight.
It's responsible to accept PUT and GET http requests, then forwarding the stream to transmit any files between two peers!Peers must PUT and GET at the same time (according to the configuration file), to start the file transmission.
If one peer spends a long time waiting for PUT/GET, the server will kick off the peer.wiredrop completely does not cache the file, only forwards the data stream.


### Secret Key
The path of the URL is the secret key you used to send the file to peers.
~~hmmmm... TOTP/HTOP seems like a good scheme.~~Example: http://wiredrop.example.com/the/secret/key
Above, the secret key is `the/secret/key`### Put File
```bash
$ curl http://wiredrop.example.com/file --upload-file
```### Receive File
Sure, you can use curl, wget, and any command that can download the file
```bash
$ wget http://wiredrop.example.com/file
$ curl http://wiredrop.example.com/file -O file
```### LICENSE
Licensed under MIT with ❤.