tri

package
v0.6.0-beta.r6-hotfix.2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2019 License: GPL-3.0 Imports: 1 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGlobalObj

func GetGlobalObj(tri Tri, 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 UpdateGlobalObj

func UpdateGlobalObj(tri Tri, 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)
	TryGlobalGet(key []byte) ([]byte, error)
	TryGlobalPut(key, value []byte) error
}

Jump to

Keyboard shortcuts

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