data

package
v0.7.1-dev-review Latest Latest
Warning

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

Go to latest
Published: May 28, 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 {
	Num      uint64
	Id2Hash  utils.H2Hash
	IdDirtys utils.Dirtys
	Hash2Pkg map[keys.Uint256]localdb.ZPkg
}

func NewData

func NewData(num uint64) (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