tri

package
v1.0.3-rc2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDBObj

func GetDBObj(db axisdb.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, *c_type.Uint256)) (hashes []c_type.Uint256)

func TryUpdateUint256s

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

func UpdateDBObj

func UpdateDBObj(database axisdb.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(obj *c_type.PKr, key *c_type.Uint256, value *c_type.Uint256)
	GetState(obj *c_type.PKr, key *c_type.Uint256) (ret c_type.Uint256)
	GlobalGetter() axisdb.Getter
}

Jump to

Keyboard shortcuts

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