Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateQuadraticExponent ¶
CalculateQuadraticExponent - returns exponential value of exponent to exponent exponent times
func SendBytesShard ¶
SendBytesShard - attempt to send specified bytes to given shard address
Types ¶
type Shard ¶
type Shard struct { Nodes *[]node.Node `json:"nodes"` // Nodes - primary list of nodes ChildNodes *[]node.Node `json:"allChildren"` // ChildNodes - list of all child nodes (recursively includes nodes in child shards, not just direct children) ShardRootAddress string `json:"root"` // ShardRootAddress - root shard address of shard tree Root bool `json:"isRoot"` // Root - is root ParentShardAddress string `json:"parent"` // ParentShardAddress - address of parent shard ChildShards []*Shard `json:"child shards"` // ChildShards - shards created as children of shard Origin time.Time `json:"creation time"` // Origin - time shard created Address string `json:"address"` // Address - addressable internet protocol ID used for shard-level communications ID string `json:"id"` // ID - hash of Shard contents }
Shard - container holding shard metadata
func NewShardWithNodes ¶
NewShardWithNodes - initialize new shard with child nodes
func (*Shard) QueryForAddress ¶
QueryForAddress - attempts to search specified node database for specified address, returns index of node
Click to show internal directories.
Click to hide internal directories.