httpfile

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2015 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("not found")
)

Functions

func Delete

func Delete(urlStr string) (err error)

func GetLength

func GetLength(url string) (ret int64, err error)

Returns the length of the resource in bytes.

func OpenSectionReader

func OpenSectionReader(url string, off, n int64) (ret io.ReadCloser, err error)

Types

type File

type File struct {
	// contains filtered or unexported fields
}

func Open

func Open(url string) *File

func (*File) Close

func (me *File) Close() error

func (*File) Read

func (me *File) Read(b []byte) (n int, err error)

func (*File) Seek

func (me *File) Seek(offset int64, whence int) (ret int64, err error)

func (*File) Write

func (me *File) Write(b []byte) (n int, err error)

Jump to

Keyboard shortcuts

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