localstorage

package
v0.0.0-...-0ccb4e7 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalStorage

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

func New

func New(folder, urlPrefix string) (*LocalStorage, error)

func (*LocalStorage) Delete

func (ls *LocalStorage) Delete(name string) error

func (*LocalStorage) List

func (ls *LocalStorage) List(prefix string) ([]string, error)

func (*LocalStorage) Save

func (ls *LocalStorage) Save(name string, input io.Reader) error

func (*LocalStorage) ServeMux

func (ls *LocalStorage) ServeMux() http.Handler

func (*LocalStorage) URL

func (ls *LocalStorage) URL(name string) (string, error)

Jump to

Keyboard shortcuts

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