storage

package
v0.0.0-...-9652534 Latest Latest
Warning

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

Go to latest
Published: May 4, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fetcher

type Fetcher interface {
	Fetch(string) string
}

type File

type File interface {
	Key() string

	Exist() (bool, string, error)

	Meta() (Fetcher, error)

	Append([]byte, int64, ...KV) (int64, string, error)

	Delete() (string, error)

	Bytes() ([]byte, string, error)

	SetMeta(...KV) error
}

type Iterator

type Iterator interface {
	Next() (File, error)

	LastKey() string
}

type KV

type KV [2]string

type Storage

type Storage interface {
	File(string) File

	Iterator(prefix string, lastKey string) Iterator

	StoreFile(string, []byte, ...KV) (string, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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