localfs

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2016 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalfsBackend

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

func NewLocalfsBackend

func NewLocalfsBackend(basePath string) LocalfsBackend

func (LocalfsBackend) Delete

func (b LocalfsBackend) Delete(key string) error

func (LocalfsBackend) Exists

func (b LocalfsBackend) Exists(key string) (bool, error)

func (LocalfsBackend) Get

func (b LocalfsBackend) Get(key string) ([]byte, error)

func (LocalfsBackend) Open

func (LocalfsBackend) Put

func (b LocalfsBackend) Put(key string, r io.Reader) (int64, error)

func (LocalfsBackend) ServeFile

func (b LocalfsBackend) ServeFile(key string, w http.ResponseWriter, r *http.Request)

func (LocalfsBackend) Size

func (b LocalfsBackend) Size(key string) (int64, error)

Jump to

Keyboard shortcuts

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