data

package
v1.0.0-rc12 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2019 License: GPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Id2Hash  utils.H2Hash
	IdDirtys utils.Dirtys
	Hash2Pkg map[keys.Uint256]localdb.ZPkg
}

func NewData

func NewData() (ret *Data)

func (*Data) Add

func (self *Data) Add(pkg *localdb.ZPkg)

func (*Data) Clear

func (self *Data) Clear()

func (*Data) GetHashes

func (self *Data) GetHashes() (ret []keys.Uint256)

func (*Data) GetPkgByHash

func (self *Data) GetPkgByHash(tr tri.Tri, hash *keys.Uint256) (pg *localdb.ZPkg)

func (*Data) GetPkgById

func (self *Data) GetPkgById(tr tri.Tri, id *keys.Uint256) (pg *localdb.ZPkg)

func (*Data) RecordState

func (self *Data) RecordState(putter serodb.Putter, hash *keys.Uint256)

func (*Data) SaveState

func (self *Data) SaveState(tr tri.Tri)

Jump to

Keyboard shortcuts

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