trie_manager

package
v1.1.0-hotfix Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareImmutable added in v0.9.7

func CompareImmutable(exp, real trie.Immutable, handler BytesDifferenceHandler) error

func CompareImmutableForObject added in v0.9.7

func CompareImmutableForObject(exp, real trie.ImmutableForObject, handler ObjectDifferenceHandler) error

func New

func New(database db.Database) trie.Manager

func NewImmutable

func NewImmutable(db db.Database, h []byte) trie.Immutable

func NewImmutableForObject

func NewImmutableForObject(db db.Database, h []byte, t reflect.Type) trie.ImmutableForObject

func NewMutable

func NewMutable(database db.Database, h []byte) trie.Mutable

func NewMutableForObject

func NewMutableForObject(db db.Database, h []byte, t reflect.Type) trie.MutableForObject

func NewMutableFromImmutable

func NewMutableFromImmutable(object trie.Immutable) trie.Mutable

func NewMutableFromImmutableForObject

func NewMutableFromImmutableForObject(object trie.ImmutableForObject) trie.MutableForObject

Types

type BytesDifferenceHandler added in v0.9.7

type BytesDifferenceHandler func(diff int, key, expect, real []byte)

type ObjectDifferenceHandler added in v0.9.7

type ObjectDifferenceHandler func(op int, key []byte, expect, real trie.Object)

Jump to

Keyboard shortcuts

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