Documentation ¶
Overview ¶
Package storage is a generated protocol buffer package.
It is generated from these files:
snapshot.proto
It has these top-level messages:
Snapshot
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Snapshot ¶
type Snapshot struct { // Nodes contains every node within the state tree, including interior nodes. // The nodes are ordered according to a pre-order traversal. Nodes []*Snapshot_StateTreeNode `protobuf:"bytes,1,rep,name=nodes" json:"nodes,omitempty"` // Issuances contains the record of recent issuances for ensuring uniqueness // of issuances. Issuances []*Snapshot_Issuance `protobuf:"bytes,2,rep,name=issuances" json:"issuances,omitempty"` }
Snapshot represents a snapshot of the blockchain, including the state tree and issuance memory.
func (*Snapshot) Descriptor ¶
func (*Snapshot) GetIssuances ¶
func (m *Snapshot) GetIssuances() []*Snapshot_Issuance
func (*Snapshot) GetNodes ¶
func (m *Snapshot) GetNodes() []*Snapshot_StateTreeNode
func (*Snapshot) ProtoMessage ¶
func (*Snapshot) ProtoMessage()
type Snapshot_Issuance ¶
type Snapshot_Issuance struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` ExpiryMs uint64 `protobuf:"varint,2,opt,name=expiry_ms,json=expiryMs" json:"expiry_ms,omitempty"` }
func (*Snapshot_Issuance) Descriptor ¶
func (*Snapshot_Issuance) Descriptor() ([]byte, []int)
func (*Snapshot_Issuance) ProtoMessage ¶
func (*Snapshot_Issuance) ProtoMessage()
func (*Snapshot_Issuance) Reset ¶
func (m *Snapshot_Issuance) Reset()
func (*Snapshot_Issuance) String ¶
func (m *Snapshot_Issuance) String() string
type Snapshot_StateTreeNode ¶
type Snapshot_StateTreeNode struct { Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` }
func (*Snapshot_StateTreeNode) Descriptor ¶
func (*Snapshot_StateTreeNode) Descriptor() ([]byte, []int)
func (*Snapshot_StateTreeNode) ProtoMessage ¶
func (*Snapshot_StateTreeNode) ProtoMessage()
func (*Snapshot_StateTreeNode) Reset ¶
func (m *Snapshot_StateTreeNode) Reset()
func (*Snapshot_StateTreeNode) String ¶
func (m *Snapshot_StateTreeNode) String() string
Click to show internal directories.
Click to hide internal directories.