Skip to content

KarpelesLab/smartremote

Repository files navigation

Build Status GoDoc Coverage Status

SmartRemote

NOTE: this is not a remote for your TV, just an easy way to access remote (http) files.

How to use:

	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