tri

package
v0.7.0-dev Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2019 License: GPL-3.0 Imports: 2 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDBObj

func GetDBObj(db serodb.Getter, key []byte, obj unserial)

func GetObj

func GetObj(tri Tri, key []byte, obj unserial)

func TryGetUint256s

func TryGetUint256s(tri Tri, key []byte, cb func([]byte, *keys.Uint256)) (hashes []keys.Uint256)

func TryUpdateUint256s

func TryUpdateUint256s(tri Tri, key []byte, hashes []keys.Uint256)

func UpdateDBObj

func UpdateDBObj(database serodb.Putter, key []byte, obj serial)

func UpdateObj

func UpdateObj(tri Tri, key []byte, obj serial)

Types

type KEY_NAME

type KEY_NAME string

func (KEY_NAME) Bytes

func (name KEY_NAME) Bytes() []byte

type Tri

type Tri interface {
	TryGet(key []byte) ([]byte, error)
	TryUpdate(key, value []byte) error
	SetState(key *keys.Uint256, value *keys.Uint256)
	GetState(key *keys.Uint256) (ret keys.Uint256)
	GlobalGetter() serodb.Getter
}

Jump to

Keyboard shortcuts

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