csprotos

package
v0.0.0-...-667e438 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package csprotos is a generated protocol buffer package.

It is generated from these files:

consensus.proto

It has these top-level messages:

ConsensusPurpose
PurposeBlock
PurposeTransactions
PurposeBlocks
ConsensusOutput

Index

Constants

This section is empty.

Variables

View Source
var Nothing = &empty.Empty{}

Functions

This section is empty.

Types

type ConsensusOutput

type ConsensusOutput struct {
	// indicate the position the consensus tx corresponding to in
	// the whole chain (history), it may be an estimated value
	// unless out is block or blockhash (in that case, it is precise)
	// if out is error, this value MUST NOT be considered
	Position uint64 `protobuf:"varint,1,opt,name=position" json:"position,omitempty"`
	// Types that are valid to be assigned to Out:
	//	*ConsensusOutput_More
	//	*ConsensusOutput_Block
	//	*ConsensusOutput_Blockhash
	//	*ConsensusOutput_Blocks
	//	*ConsensusOutput_Nothing
	//	*ConsensusOutput_Error
	Out isConsensusOutput_Out `protobuf_oneof:"out"`
}

func (*ConsensusOutput) Descriptor

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

func (*ConsensusOutput) GetBlock

func (m *ConsensusOutput) GetBlock() *protos2.Block

func (*ConsensusOutput) GetBlockhash

func (m *ConsensusOutput) GetBlockhash() []byte

func (*ConsensusOutput) GetBlocks

func (m *ConsensusOutput) GetBlocks() *PurposeBlocks

func (*ConsensusOutput) GetError

func (m *ConsensusOutput) GetError() string

func (*ConsensusOutput) GetMore

func (m *ConsensusOutput) GetMore() *PurposeTransactions

func (*ConsensusOutput) GetNothing

func (m *ConsensusOutput) GetNothing() *google_protobuf1.Empty

func (*ConsensusOutput) GetOut

func (m *ConsensusOutput) GetOut() isConsensusOutput_Out

func (*ConsensusOutput) GetPosition

func (m *ConsensusOutput) GetPosition() uint64

func (*ConsensusOutput) ProtoMessage

func (*ConsensusOutput) ProtoMessage()

func (*ConsensusOutput) Reset

func (m *ConsensusOutput) Reset()

func (*ConsensusOutput) String

func (m *ConsensusOutput) String() string

func (*ConsensusOutput) ToRet

func (m *ConsensusOutput) ToRet() ([]byte, error)

func (*ConsensusOutput) XXX_OneofFuncs

func (*ConsensusOutput) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type ConsensusOutput_Block

type ConsensusOutput_Block struct {
	Block *protos2.Block `protobuf:"bytes,3,opt,name=block,oneof"`
}

type ConsensusOutput_Blockhash

type ConsensusOutput_Blockhash struct {
	Blockhash []byte `protobuf:"bytes,4,opt,name=blockhash,proto3,oneof"`
}

type ConsensusOutput_Blocks

type ConsensusOutput_Blocks struct {
	Blocks *PurposeBlocks `protobuf:"bytes,5,opt,name=blocks,oneof"`
}

type ConsensusOutput_Error

type ConsensusOutput_Error struct {
	Error string `protobuf:"bytes,9,opt,name=error,oneof"`
}

type ConsensusOutput_More

type ConsensusOutput_More struct {
	More *PurposeTransactions `protobuf:"bytes,2,opt,name=more,oneof"`
}

type ConsensusOutput_Nothing

type ConsensusOutput_Nothing struct {
	Nothing *google_protobuf1.Empty `protobuf:"bytes,8,opt,name=nothing,oneof"`
}

type ConsensusPayloads

type ConsensusPayloads []byte

func (ConsensusPayloads) Block

func (bt ConsensusPayloads) Block() (*PurposeBlock, error)

type ConsensusPurpose

type ConsensusPurpose struct {
	// Types that are valid to be assigned to Out:
	//	*ConsensusPurpose_Txs
	//	*ConsensusPurpose_Nothing
	//	*ConsensusPurpose_Error
	Out isConsensusPurpose_Out `protobuf_oneof:"out"`
}

func (*ConsensusPurpose) Descriptor

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

func (*ConsensusPurpose) GetError

func (m *ConsensusPurpose) GetError() string

func (*ConsensusPurpose) GetNothing

func (m *ConsensusPurpose) GetNothing() *google_protobuf1.Empty

func (*ConsensusPurpose) GetOut

func (m *ConsensusPurpose) GetOut() isConsensusPurpose_Out

func (*ConsensusPurpose) GetTxs

func (*ConsensusPurpose) ProtoMessage

func (*ConsensusPurpose) ProtoMessage()

func (*ConsensusPurpose) Reset

func (m *ConsensusPurpose) Reset()

func (*ConsensusPurpose) String

func (m *ConsensusPurpose) String() string

func (*ConsensusPurpose) ToRet

func (m *ConsensusPurpose) ToRet() ([]byte, error)

func (*ConsensusPurpose) XXX_OneofFuncs

func (*ConsensusPurpose) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type ConsensusPurpose_Error

type ConsensusPurpose_Error struct {
	Error string `protobuf:"bytes,3,opt,name=error,oneof"`
}

type ConsensusPurpose_Nothing

type ConsensusPurpose_Nothing struct {
	Nothing *google_protobuf1.Empty `protobuf:"bytes,2,opt,name=nothing,oneof"`
}

type ConsensusPurpose_Txs

type ConsensusPurpose_Txs struct {
	Txs *protos2.TransactionBlock `protobuf:"bytes,1,opt,name=txs,oneof"`
}

type ConsensusRet

type ConsensusRet []byte

func (ConsensusRet) MinerOut

func (bt ConsensusRet) MinerOut() (*ConsensusPurpose, error)

func (ConsensusRet) Out

func (bt ConsensusRet) Out() (*ConsensusOutput, error)

type PendingTransactions

type PendingTransactions []*pb.TransactionHandlingContext

func (PendingTransactions) PType

type PurposeBlock

type PurposeBlock struct {
	N uint64         `protobuf:"varint,1,opt,name=n" json:"n,omitempty"`
	B *protos2.Block `protobuf:"bytes,2,opt,name=b" json:"b,omitempty"`
}

func (*PurposeBlock) Bytes

func (b *PurposeBlock) Bytes() ([]byte, error)

func (*PurposeBlock) Descriptor

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

func (*PurposeBlock) GetB

func (m *PurposeBlock) GetB() *protos2.Block

func (*PurposeBlock) GetN

func (m *PurposeBlock) GetN() uint64

func (*PurposeBlock) ProtoMessage

func (*PurposeBlock) ProtoMessage()

func (*PurposeBlock) Reset

func (m *PurposeBlock) Reset()

func (*PurposeBlock) String

func (m *PurposeBlock) String() string

type PurposeBlocks

type PurposeBlocks struct {
	Blks []*PurposeBlock `protobuf:"bytes,1,rep,name=blks" json:"blks,omitempty"`
}

func (*PurposeBlocks) Descriptor

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

func (*PurposeBlocks) GetBlks

func (m *PurposeBlocks) GetBlks() []*PurposeBlock

func (*PurposeBlocks) ProtoMessage

func (*PurposeBlocks) ProtoMessage()

func (*PurposeBlocks) Reset

func (m *PurposeBlocks) Reset()

func (*PurposeBlocks) String

func (m *PurposeBlocks) String() string

type PurposeTransactions

type PurposeTransactions struct {
	Ids []string `protobuf:"bytes,1,rep,name=ids" json:"ids,omitempty"`
}

func (*PurposeTransactions) Descriptor

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

func (*PurposeTransactions) GetIds

func (m *PurposeTransactions) GetIds() []string

func (*PurposeTransactions) ProtoMessage

func (*PurposeTransactions) ProtoMessage()

func (*PurposeTransactions) Reset

func (m *PurposeTransactions) Reset()

func (*PurposeTransactions) String

func (m *PurposeTransactions) String() string

Jump to

Keyboard shortcuts

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