zbftpb

package
v0.0.0-...-6bca171 Latest Latest
Warning

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

Go to latest
Published: May 28, 2018 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package zbftpb is a generated protocol buffer package.

It is generated from these files:

zbft.proto

It has these top-level messages:

Message

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthZbft = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowZbft   = fmt.Errorf("proto: integer overflow")
)
View Source
var Message_Type_name = map[int32]string{
	0: "NONE",
	1: "BOOTSTRAP",
	3: "PROPOSAL",
	4: "SIGNATURE",
	5: "PERSIST",
}
View Source
var Message_Type_value = map[string]int32{
	"NONE":      0,
	"BOOTSTRAP": 1,
	"PROPOSAL":  3,
	"SIGNATURE": 4,
	"PERSIST":   5,
}

Functions

This section is empty.

Types

type Message

type Message struct {
	// Type of message
	Type Message_Type `protobuf:"varint,1,opt,name=type,proto3,enum=zbftpb.Message_Type" json:"type,omitempty"`
	// Block in question
	Block *bcpb.Block `protobuf:"bytes,2,opt,name=block" json:"block,omitempty"`
	// Entity who sent the message where applicable
	From bcpb.PublicKey `protobuf:"bytes,3,opt,name=from,proto3,casttype=bcpb.PublicKey" json:"from,omitempty"`
	// Tx's part of the block that are in question
	Txs []*bcpb.Tx `protobuf:"bytes,4,rep,name=txs" json:"txs,omitempty"`
}

All fields except type are optional and used based on context

func (*Message) Descriptor

func (*Message) Descriptor() ([]byte, []int)

func (*Message) GetBlock

func (m *Message) GetBlock() *bcpb.Block

func (*Message) GetFrom

func (m *Message) GetFrom() bcpb.PublicKey

func (*Message) GetTxs

func (m *Message) GetTxs() []*bcpb.Tx

func (*Message) GetType

func (m *Message) GetType() Message_Type

func (*Message) Marshal

func (m *Message) Marshal() (dAtA []byte, err error)

func (*Message) MarshalTo

func (m *Message) MarshalTo(dAtA []byte) (int, error)

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) Size

func (m *Message) Size() (n int)

func (*Message) String

func (m *Message) String() string

func (*Message) Unmarshal

func (m *Message) Unmarshal(dAtA []byte) error

type Message_Type

type Message_Type int32
const (
	Message_NONE      Message_Type = 0
	Message_BOOTSTRAP Message_Type = 1
	// PREPARE = 1;   // Prepare transaction/s
	Message_PROPOSAL  Message_Type = 3
	Message_SIGNATURE Message_Type = 4
	Message_PERSIST   Message_Type = 5
)

func (Message_Type) EnumDescriptor

func (Message_Type) EnumDescriptor() ([]byte, []int)

func (Message_Type) String

func (x Message_Type) String() string

Jump to

Keyboard shortcuts

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