rw

package
v0.0.0-...-1b2fc92 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base interface {
	Start() error
}

Base is an interface that defines a start function, used for setup.

type Deleter

type Deleter interface {
	Base
	Delete(string) error
}

Deleter is a base interface to delete data.

type Prefixed

type Prefixed struct {
	Prefix string `json:"prefix"`
	Suffix string `json:"suffix"`
}

Prefixed struct allows to define prefix and suffix (for example a file extension)

func (*Prefixed) Name

func (p *Prefixed) Name(id string) string

Name generate a name from with prefix and suffix

type ReadDeleter

type ReadDeleter interface {
	Base
	NewReader(string) (io.ReadCloser, error)
	Delete(string) error
}

ReadDeleter is a type with Base, Reader and Deleter

type ReadWriteDeleter

type ReadWriteDeleter interface {
	Base
	NewReader(string) (io.ReadCloser, error)
	NewWriter(string) (io.WriteCloser, error)
	Delete(string) error
}

ReadWriteDeleter is a type with Base, Reader, Writer and Deleter

type ReadWriter

type ReadWriter interface {
	Base
	NewReader(string) (io.ReadCloser, error)
	NewWriter(string) (io.WriteCloser, error)
}

ReadWriter is a type with Base, Reader and Writer

type Reader

type Reader interface {
	Base
	NewReader(string) (io.ReadCloser, error)
}

Reader is a base interface to read data.

type WriteDeleter

type WriteDeleter interface {
	Base
	NewWriter(string) (io.WriteCloser, error)
	Delete(string) error
}

WriteDeleter is a type with Base, Writer and Deleter

type Writer

type Writer interface {
	Base
	NewWriter(string) (io.WriteCloser, error)
}

Writer is a base interface to write data.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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