cache

package
v0.0.0-...-2f794db Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2015 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

The cache package provides efficient small reads of large remote HTTP files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MeasureTransferRate

func MeasureTransferRate() func(int64) string

Credit to github.com/prasmussen/gdrive/cli for inspiration

Types

type Reader

type Reader interface {
	Read(url string, offset int64, size int64, max int64) ([]byte, error)
}

func NewCache

func NewCache(path string, client *http.Client) Reader

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL