genericstruct

package
v0.0.0-...-d40ae05 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrReadOnly = errors.New("ReadOnly")

Functions

This section is empty.

Types

type Block

type Block interface {
	Load(buf *bytebufferpool.ByteBuffer)
	Store(buf *bytebufferpool.ByteBuffer)
	Dirty() bool
}

type NodeCache

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

func (*NodeCache) Delete

func (c *NodeCache) Delete(off int64) error

func (*NodeCache) Flush

func (c *NodeCache) Flush() error

func (*NodeCache) Get

func (c *NodeCache) Get(off int64) (Block, error)

func (*NodeCache) GetFromCache

func (c *NodeCache) GetFromCache(off int64) (Block, bool)

func (*NodeCache) Set

func (c *NodeCache) Set(b Block) (int64, error)

type NodeMaster

type NodeMaster struct {
	Factory func() Block
	// contains filtered or unexported fields
}

func (*NodeMaster) Open

func (m *NodeMaster) Open(dman dataman.DataManager, rdonly bool) *NodeCache

Jump to

Keyboard shortcuts

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