diskv

package
v0.2.4-0...-bb5b233 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const SeparationCharacter = "-"

Variables

This section is empty.

Functions

This section is empty.

Types

type ByteStore

type ByteStore struct {
	RootDir   string
	CacheSize uint64
	Transform func(s string) []string
	DB        *diskv.Diskv
}

func NewByteStore

func NewByteStore() *ByteStore

func (*ByteStore) Add

func (m *ByteStore) Add(db string, file *os.File) (map[string]interface{}, error)

func (*ByteStore) Delete

func (m *ByteStore) Delete(db, filename string) error

func (*ByteStore) DropDatabase

func (m *ByteStore) DropDatabase(db string) error

func (*ByteStore) Read

func (m *ByteStore) Read(db, filename string, file io.Writer) error

func (*ByteStore) Start

func (m *ByteStore) Start(config string) error

func (*ByteStore) Update

func (m *ByteStore) Update(db, filename string, file *os.File) (map[string]interface{}, error)

type Config

type Config struct {
	RootDir   string `json:"rootdir"`
	CacheSize uint64 `json:"cachesize"`
}

Jump to

Keyboard shortcuts

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