Versions in this module Expand all Collapse all v1 v1.0.0 Nov 13, 2015 Changes in this version + type Compression interface + Reader func(src io.Reader) (io.ReadCloser, error) + Writer func(dst io.Writer) (io.WriteCloser, error) + func NewGzipCompression() Compression + func NewGzipCompressionLevel(level int) Compression + func NewZlibCompression() Compression + func NewZlibCompressionLevel(level int) Compression + func NewZlibCompressionLevelDict(level int, dict []byte) Compression + type Diskv struct + func New(o Options) *Diskv + func (d *Diskv) Erase(key string) error + func (d *Diskv) EraseAll() error + func (d *Diskv) Has(key string) bool + func (d *Diskv) Import(srcFilename, dstKey string, move bool) (err error) + func (d *Diskv) Keys(cancel <-chan struct{}) <-chan string + func (d *Diskv) KeysPrefix(prefix string, cancel <-chan struct{}) <-chan string + func (d *Diskv) Read(key string) ([]byte, error) + func (d *Diskv) ReadStream(key string, direct bool) (io.ReadCloser, error) + func (d *Diskv) Write(key string, val []byte) error + func (d *Diskv) WriteStream(key string, r io.Reader, sync bool) error + type Index interface + Delete func(key string) + Initialize func(less LessFunction, keys <-chan string) + Insert func(key string) + Keys func(from string, n int) []string + type LLRBIndex struct + func (i *LLRBIndex) Delete(key string) + func (i *LLRBIndex) Initialize(less LessFunction, keys <-chan string) + func (i *LLRBIndex) Insert(key string) + func (i *LLRBIndex) Keys(from string, n int) []string + type LessFunction func(string, string) bool + type Options struct + BasePath string + CacheSizeMax uint64 + Compression Compression + FilePerm os.FileMode + Index Index + IndexLess LessFunction + PathPerm os.FileMode + Transform TransformFunction + type TransformFunction func(s string) []string Incompatible versions in this module v2.0.1+incompatible Aug 14, 2017 v2.0.0+incompatible Mar 30, 2016 Other modules containing this package github.com/mchtech/diskv/v3