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"` // Nonces contains the record of recent nonces for ensuring // uniqueness of issuances. Nonces []*Snapshot_Nonce `protobuf:"bytes,2,rep,name=nonces" json:"nonces,omitempty"` }
Snapshot represents a snapshot of the blockchain, including the state tree and issuance memory.
func (*Snapshot) Descriptor ¶
func (*Snapshot) GetNodes ¶
func (m *Snapshot) GetNodes() []*Snapshot_StateTreeNode
func (*Snapshot) GetNonces ¶
func (m *Snapshot) GetNonces() []*Snapshot_Nonce
func (*Snapshot) ProtoMessage ¶
func (*Snapshot) ProtoMessage()
type Snapshot_Nonce ¶
type Snapshot_Nonce 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_Nonce) Descriptor ¶
func (*Snapshot_Nonce) Descriptor() ([]byte, []int)
func (*Snapshot_Nonce) ProtoMessage ¶
func (*Snapshot_Nonce) ProtoMessage()
func (*Snapshot_Nonce) Reset ¶
func (m *Snapshot_Nonce) Reset()
func (*Snapshot_Nonce) String ¶
func (m *Snapshot_Nonce) String() string
type Snapshot_StateTreeNode ¶
type Snapshot_StateTreeNode struct {
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,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.