Documentation
¶
Overview ¶
Package storage is a generated protocol buffer package.
It is generated from these files:
storage.proto
It has these top-level messages:
Snapshot Mainchain
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mainchain ¶ added in v0.1.4
type Mainchain struct {
Hashs []*Mainchain_Hash `protobuf:"bytes,1,rep,name=hashs" json:"hashs,omitempty"`
}
Mainchain represents a mainchain of the blockchain
func (*Mainchain) Descriptor ¶ added in v0.1.4
func (*Mainchain) GetHashs ¶ added in v0.1.4
func (m *Mainchain) GetHashs() []*Mainchain_Hash
func (*Mainchain) ProtoMessage ¶ added in v0.1.4
func (*Mainchain) ProtoMessage()
type Mainchain_Hash ¶ added in v0.1.4
type Mainchain_Hash struct {
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
}
func (*Mainchain_Hash) Descriptor ¶ added in v0.1.4
func (*Mainchain_Hash) Descriptor() ([]byte, []int)
func (*Mainchain_Hash) GetKey ¶ added in v0.1.4
func (m *Mainchain_Hash) GetKey() []byte
func (*Mainchain_Hash) ProtoMessage ¶ added in v0.1.4
func (*Mainchain_Hash) ProtoMessage()
func (*Mainchain_Hash) Reset ¶ added in v0.1.4
func (m *Mainchain_Hash) Reset()
func (*Mainchain_Hash) String ¶ added in v0.1.4
func (m *Mainchain_Hash) String() string
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) GetExpiryMs ¶ added in v0.1.4
func (m *Snapshot_Nonce) GetExpiryMs() uint64
func (*Snapshot_Nonce) GetHash ¶ added in v0.1.4
func (m *Snapshot_Nonce) GetHash() []byte
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) GetKey ¶ added in v0.1.4
func (m *Snapshot_StateTreeNode) GetKey() []byte
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.