fileblockcache

package
v0.0.0-alpha-0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2015 License: MPL-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDiskCacheBasePath

func GetDiskCacheBasePath(cfg *config.Wrapper, folder string) string

Types

type FileBlockCache

type FileBlockCache struct {
	// contains filtered or unexported fields
}

func NewFileBlockCache

func NewFileBlockCache(cfg *config.Wrapper, db *bolt.DB, fldrCfg config.FolderConfiguration) (*FileBlockCache, error)

func (*FileBlockCache) AddCachedFileData

func (d *FileBlockCache) AddCachedFileData(block protocol.BlockInfo, data []byte)

func (*FileBlockCache) GetCachedBlockData

func (d *FileBlockCache) GetCachedBlockData(blockHash []byte) ([]byte, bool)

Jump to

Keyboard shortcuts

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