mem

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RandomFile = ""

Functions

This section is empty.

Types

type Provider

type Provider struct {
	Files map[string]*bytes.Buffer
}

func Configure

func Configure() (Provider, error)

func (Provider) Download

func (f Provider) Download(path string) (provider.Downloader, error)

func (Provider) Expunge

func (f Provider) Expunge(path string) error

func (Provider) Upload

func (f Provider) Upload(path string) (provider.Uploader, error)

type Uploader

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

func (*Uploader) Cancel

func (out *Uploader) Cancel() error

func (*Uploader) Close

func (out *Uploader) Close() error

func (*Uploader) Path

func (out *Uploader) Path() string

func (*Uploader) Write

func (out *Uploader) Write(b []byte) (int, error)

func (*Uploader) WroteCompressed

func (out *Uploader) WroteCompressed() int64

func (*Uploader) WroteUncompressed

func (out *Uploader) WroteUncompressed() int64

Jump to

Keyboard shortcuts

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