levelfile

package
v0.0.0-...-b38e3c6 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2018 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MinSize      int
	MaxOpenFiles int
	MaxFileSize  int64
	MaxFileSpace int64
}

func (*Config) OpenKVP

func (s *Config) OpenKVP(path string) (storage.KeyValuePartition, error)

type FilePartition

type FilePartition struct {
	DB *leveldb.DB
	SM filestore.StorageManager

	MinSize      int
	MaxFileSpace int64

	Path string
	// contains filtered or unexported fields
}

func (*FilePartition) Get

func (s *FilePartition) Get(id []byte, dest io.Writer) error

func (*FilePartition) GetFreeSpace

func (s *FilePartition) GetFreeSpace() int64

func (*FilePartition) Put

func (s *FilePartition) Put(id, value []byte) error

Jump to

Keyboard shortcuts

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