Documentation ¶
Index ¶
Constants ¶
View Source
const CIDSuffixLength = 16
CIDSuffixLength sets the length to truncate the CID in dot syntax production
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct { CID string `pg:"cid"` Height uint64 `pg:"height"` ParentCID string `pg:"parent_cid"` ParentHeight uint64 `pg:"parent_height"` Miner string `pg:"miner"` }
Block represents a single node to be visualized
type BlockSet ¶
type BlockSet struct {
// contains filtered or unexported fields
}
BlockSet represents a collection of Blocks to be visualized
func NewBlockSet ¶
NewBlockSet returns a BlockSet when given a slice of *Blocks
Click to show internal directories.
Click to hide internal directories.