storage

package
v0.0.0-...-4027801 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

func IsGenesisUnit

func IsGenesisUnit(unit UnitT) bool

func isGenesisUnit(unit UnitT) bool {

func ReadJoint

func ReadJoint(conn refDBConnT, unit UnitT, cb ReadJointCbT)

func ReadLastStableMcIndex_sync

func ReadLastStableMcIndex_sync(conn refDBConnT) MCIndexT

func readLastStableMcIndex_sync(conn DBConnT) MCIndexT {

func ReadPropsOfUnits_sync

func ReadPropsOfUnits_sync(conn refDBConnT, unit UnitT, units UnitsT) (refPropsT, PropssT)

func ReadPropsOfUnits_sync(conn refDBConnT, unit UnitT, units UnitsT) (refPropsT, refPropssT) {

func ReadStaticUnitProps_sync

func ReadStaticUnitProps_sync(conn refDBConnT, unit UnitT) refPropsT

func readStaticUnitProps_sync(conn DBConnT, unit UnitT) refPropsT {

func ReadUnitAuthors_sync

func ReadUnitAuthors_sync(conn refDBConnT, unit UnitT) AddressesT

func readUnitAuthors_sync(conn DBConnT, unit UnitT) {

func ReadUnitProps_sync

func ReadUnitProps_sync(conn refDBConnT, unit UnitT) refPropsT

func readUnitProps_sync(conn DBConnT, unit UnitT) PropsT {

func ReadWitnessList_sync

func ReadWitnessList_sync(conn refDBConnT, unit UnitT, bAllowEmptyList bool) AddressesT

func readWitnessList_sync(conn DBConnT, unit UnitT, bAllowEmptyList bool) AddressesT {

func ReadWitnesses_sync

func ReadWitnesses_sync(conn refDBConnT, unit UnitT) AddressesT

func readWitnesses_sync(conn DBConnT, unit UnitT) AddressesT {

func ResetUnstableUnits_sync

func ResetUnstableUnits_sync()

func resetUnstableUnits_sync() {

func UpdateMinRetrievableMciAfterStabilizingMci_sync

func UpdateMinRetrievableMciAfterStabilizingMci_sync(conn refDBConnT, last_stable_mci MCIndexT) MCIndexT

func updateMinRetrievableMciAfterStabilizingMci_sync(conn DBConnT, last_stable_mci MCIndexT) MCIndexT {

Types

type AddressesByUnitMapT

type AddressesByUnitMapT = map[UnitT]AddressesT
var AssocCachedUnitAuthors AddressesByUnitMapT = make(AddressesByUnitMapT)

assocCachedUnitAuthors := [*ObjectExpression*]

var AssocCachedUnitWitnesses AddressesByUnitMapT = make(AddressesByUnitMapT)

assocCachedUnitWitnesses := [*ObjectExpression*]

type BoolByUnitMapT

type BoolByUnitMapT = map[UnitT]bool
var AssocKnownUnits BoolByUnitMapT = make(BoolByUnitMapT)

MAX_ITEMS_IN_CACHE := 300 assocKnownUnits := [*ObjectExpression*]

type DBConnT

type DBConnT = db.DBConnT

type DBParamsT

type DBParamsT = db.DBParamsT

type PropsByUnitMapT

type PropsByUnitMapT = map[UnitT]refPropsT
var AssocCachedUnits PropsByUnitMapT = make(PropsByUnitMapT)

assocCachedUnits := [*ObjectExpression*]

var AssocStableUnits PropsByUnitMapT = make(PropsByUnitMapT)

assocStableUnits := [*ObjectExpression*]

type ReadJointCbT

type ReadJointCbT struct {
	IfFound    func(objJoint refJointT)
	IfNotFound func()
}

type XPropsByUnitMapT

type XPropsByUnitMapT = map[UnitT]refXPropsT
var AssocUnstableUnits XPropsByUnitMapT = make(XPropsByUnitMapT)

assocUnstableUnits := [*ObjectExpression*]

type XPropsT

type XPropsT struct {
	Unit UnitT
	PropsT
	Parent_units UnitsT
}

Jump to

Keyboard shortcuts

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