tree

package
v0.0.0-...-b0c7cc0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TreeSize  = int(unsafe.Sizeof(Tree{}) + 24)
	FieldSize = int(unsafe.Sizeof(Field{}) + 24)
)
View Source
const (
	Separator = "/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	sync.RWMutex
	Touch    time.Time
	Value    interface{}
	Version  uint64
	Snapshot *leveldb.Snapshot
}

type ID

type ID uint64

type Tree

type Tree struct {
	sync.Mutex
	ID     ID
	Full   bool
	Fields map[string]*Field
}

func NewTree

func NewTree(id ID) *Tree

func (*Tree) EnterNewField

func (t *Tree) EnterNewField(key string) *Field

Jump to

Keyboard shortcuts

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