https://github.com/karpeleslab/smartremote
Not a TV remote.
https://github.com/karpeleslab/smartremote
golang http
Last synced: 10 months ago
JSON representation
Not a TV remote.
- Host: GitHub
- URL: https://github.com/karpeleslab/smartremote
- Owner: KarpelesLab
- License: mit
- Created: 2019-12-29T07:05:32.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-06-29T01:13:54.000Z (almost 2 years ago)
- Last Synced: 2025-07-01T00:08:54.891Z (10 months ago)
- Topics: golang, http
- Language: Go
- Size: 54.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/KarpelesLab/smartremote)
[](https://godoc.org/github.com/KarpelesLab/smartremote)
[](https://coveralls.io/github/KarpelesLab/smartremote?branch=master)
# SmartRemote
NOTE: this is not a remote for your TV, just an easy way to access remote (http) files.
How to use:
```Go
f, err := smartremote.Open("http://...")
if err != nil {
panic(err)
}
// Use "f" as a regular readonly file, it'll download parts as needed from the remote url
```
This can be used with any kind of file as long as the server supports resume.
If it doesn't then this will just download the whole file, and still work the
same.
# TODO
* Add support for range invalidation (bad checksum causes re-download of affected area)
* Refactor idle downloader for better performances