inmemorystorage

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemoryStorage

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

func New

func New(urlPrefix string) *InMemoryStorage

func (*InMemoryStorage) Delete

func (ims *InMemoryStorage) Delete(name string) error

func (*InMemoryStorage) List

func (ims *InMemoryStorage) List(prefix string) ([]string, error)

func (*InMemoryStorage) Save

func (ims *InMemoryStorage) Save(name string, f io.Reader) error

func (*InMemoryStorage) ServeMux

func (ims *InMemoryStorage) ServeMux() http.Handler

func (*InMemoryStorage) URL

func (ims *InMemoryStorage) URL(name string) (string, error)

Jump to

Keyboard shortcuts

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