Versions in this module Expand all Collapse all v3 v3.0.1 Nov 10, 2021 v3.0.0 Apr 25, 2019 Changes in this version + type AdvancedTransformFunction func(s string) *PathKey + type BTreeIndex struct + func (i *BTreeIndex) Delete(key string) + func (i *BTreeIndex) Initialize(less LessFunction, keys <-chan string) + func (i *BTreeIndex) Insert(key string) + func (i *BTreeIndex) Keys(from string, n int) []string + 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) ReadString(key string) string + func (d *Diskv) Write(key string, val []byte) error + func (d *Diskv) WriteStream(key string, r io.Reader, sync bool) error + func (d *Diskv) WriteString(key string, val string) 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 InverseTransformFunction func(pathKey *PathKey) string + type LessFunction func(string, string) bool + type Options struct + AdvancedTransform AdvancedTransformFunction + BasePath string + CacheSizeMax uint64 + Compression Compression + FilePerm os.FileMode + Index Index + IndexLess LessFunction + InverseTransform InverseTransformFunction + PathPerm os.FileMode + TempDir string + Transform TransformFunction + type PathKey struct + FileName string + Path []string + type TransformFunction func(s string) []string Other modules containing this package github.com/peterbourgon/diskv