storage

package
v0.0.0-...-024a0a0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2017 License: AGPL-3.0 Imports: 3 Imported by: 0

README

If you edit snapshot.proto (which specifies the serialization format for state.Snapshot objects) you will have to regenerate snapshot.pb.go using protoc:

protoc --go_out=. snapshot.proto

You will also need the protoc plugin for generating Go code.

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

func (*Snapshot) GetNodes

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

func (*Snapshot) GetNonces

func (m *Snapshot) GetNonces() []*Snapshot_Nonce

func (*Snapshot) ProtoMessage

func (*Snapshot) ProtoMessage()

func (*Snapshot) Reset

func (m *Snapshot) Reset()

func (*Snapshot) String

func (m *Snapshot) String() string

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

Jump to

Keyboard shortcuts

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