Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bay ¶
func (Bay) Fetch ¶
Fetch downloads a book from tortuga@{remote}:{remotePath} to localPath and returns its just calculated MD5SUM and an error if any.
type Cache ¶
func NewCacheFromFile ¶
Expects a JSON formatted file path and returns the parsed Cache.
func (Cache) Diff ¶
Diff returns the difference between cc and a. This is used to evaluate what has to be fetched from the server. Since the file hash in the local cache is computed locally this mechanism intrinsically makes sure that if the file is corrupted it will be re downloaded next time.
func (Cache) WriteToFile ¶
Writes the Cache to the given path encoded in JSON format.
Click to show internal directories.
Click to hide internal directories.