storage

package
v0.0.0-...-59fa258 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2016 License: AGPL-3.0 Imports: 3 Imported by: 0

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) Descriptor() ([]byte, []int)

func (*Snapshot) GetIssuances

func (m *Snapshot) GetIssuances() []*Snapshot_Issuance

func (*Snapshot) GetNodes

func (m *Snapshot) GetNodes() []*Snapshot_StateTreeNode

func (*Snapshot) ProtoMessage

func (*Snapshot) ProtoMessage()

func (*Snapshot) Reset

func (m *Snapshot) Reset()

func (*Snapshot) String

func (m *Snapshot) String() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL