gossip

package
v2.2.2-0...-90f574e Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: MIT Imports: 7 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthGossip        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGossip          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGossip = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type Checkpoint

type Checkpoint struct {
	Height           uint64   `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	AddBlockRequests [][]byte `protobuf:"bytes,2,rep,name=add_block_requests,json=addBlockRequests,proto3" json:"add_block_requests,omitempty"`
}

func (*Checkpoint) Descriptor

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

func (*Checkpoint) GetAddBlockRequests

func (m *Checkpoint) GetAddBlockRequests() [][]byte

func (*Checkpoint) GetHeight

func (m *Checkpoint) GetHeight() uint64

func (*Checkpoint) Marshal

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

func (*Checkpoint) MarshalTo

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

func (*Checkpoint) MarshalToSizedBuffer

func (m *Checkpoint) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Checkpoint) ProtoMessage

func (*Checkpoint) ProtoMessage()

func (*Checkpoint) Reset

func (m *Checkpoint) Reset()

func (*Checkpoint) Size

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

func (*Checkpoint) String

func (m *Checkpoint) String() string

func (*Checkpoint) Unmarshal

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

func (*Checkpoint) XXX_DiscardUnknown

func (m *Checkpoint) XXX_DiscardUnknown()

func (*Checkpoint) XXX_Marshal

func (m *Checkpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Checkpoint) XXX_Merge

func (m *Checkpoint) XXX_Merge(src proto.Message)

func (*Checkpoint) XXX_Size

func (m *Checkpoint) XXX_Size() int

func (*Checkpoint) XXX_Unmarshal

func (m *Checkpoint) XXX_Unmarshal(b []byte) error

type Proof

type Proof struct {
	ObjectId          []byte                    `protobuf:"bytes,1,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"`
	Tip               []byte                    `protobuf:"bytes,2,opt,name=tip,proto3" json:"tip,omitempty"`
	AddBlockRequest   *services.AddBlockRequest `protobuf:"bytes,3,opt,name=add_block_request,json=addBlockRequest,proto3" json:"add_block_request,omitempty"`
	Checkpoint        *Checkpoint               `protobuf:"bytes,4,opt,name=checkpoint,proto3" json:"checkpoint,omitempty"`
	Round             *Round                    `protobuf:"bytes,5,opt,name=round,proto3" json:"round,omitempty"`
	RoundConfirmation *RoundConfirmation        `protobuf:"bytes,6,opt,name=round_confirmation,json=roundConfirmation,proto3" json:"round_confirmation,omitempty"`
}

func (*Proof) Descriptor

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

func (*Proof) GetAddBlockRequest

func (m *Proof) GetAddBlockRequest() *services.AddBlockRequest

func (*Proof) GetCheckpoint

func (m *Proof) GetCheckpoint() *Checkpoint

func (*Proof) GetObjectId

func (m *Proof) GetObjectId() []byte

func (*Proof) GetRound

func (m *Proof) GetRound() *Round

func (*Proof) GetRoundConfirmation

func (m *Proof) GetRoundConfirmation() *RoundConfirmation

func (*Proof) GetTip

func (m *Proof) GetTip() []byte

func (*Proof) Marshal

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

func (*Proof) MarshalTo

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

func (*Proof) MarshalToSizedBuffer

func (m *Proof) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Proof) ProtoMessage

func (*Proof) ProtoMessage()

func (*Proof) Reset

func (m *Proof) Reset()

func (*Proof) Size

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

func (*Proof) String

func (m *Proof) String() string

func (*Proof) Unmarshal

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

func (*Proof) XXX_DiscardUnknown

func (m *Proof) XXX_DiscardUnknown()

func (*Proof) XXX_Marshal

func (m *Proof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Proof) XXX_Merge

func (m *Proof) XXX_Merge(src proto.Message)

func (*Proof) XXX_Size

func (m *Proof) XXX_Size() int

func (*Proof) XXX_Unmarshal

func (m *Proof) XXX_Unmarshal(b []byte) error

type Round

type Round struct {
	Height        uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	CheckpointCid []byte `protobuf:"bytes,2,opt,name=checkpoint_cid,json=checkpointCid,proto3" json:"checkpoint_cid,omitempty"`
	StateCid      []byte `protobuf:"bytes,3,opt,name=state_cid,json=stateCid,proto3" json:"state_cid,omitempty"`
}

func (*Round) Descriptor

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

func (*Round) GetCheckpointCid

func (m *Round) GetCheckpointCid() []byte

func (*Round) GetHeight

func (m *Round) GetHeight() uint64

func (*Round) GetStateCid

func (m *Round) GetStateCid() []byte

func (*Round) Marshal

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

func (*Round) MarshalTo

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

func (*Round) MarshalToSizedBuffer

func (m *Round) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Round) ProtoMessage

func (*Round) ProtoMessage()

func (*Round) Reset

func (m *Round) Reset()

func (*Round) Size

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

func (*Round) String

func (m *Round) String() string

func (*Round) Unmarshal

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

func (*Round) XXX_DiscardUnknown

func (m *Round) XXX_DiscardUnknown()

func (*Round) XXX_Marshal

func (m *Round) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Round) XXX_Merge

func (m *Round) XXX_Merge(src proto.Message)

func (*Round) XXX_Size

func (m *Round) XXX_Size() int

func (*Round) XXX_Unmarshal

func (m *Round) XXX_Unmarshal(b []byte) error

type RoundConfirmation

type RoundConfirmation struct {
	Height    uint64                `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	RoundCid  []byte                `protobuf:"bytes,2,opt,name=round_cid,json=roundCid,proto3" json:"round_cid,omitempty"`
	Signature *signatures.Signature `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
}

func (*RoundConfirmation) Descriptor

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

func (*RoundConfirmation) GetHeight

func (m *RoundConfirmation) GetHeight() uint64

func (*RoundConfirmation) GetRoundCid

func (m *RoundConfirmation) GetRoundCid() []byte

func (*RoundConfirmation) GetSignature

func (m *RoundConfirmation) GetSignature() *signatures.Signature

func (*RoundConfirmation) Marshal

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

func (*RoundConfirmation) MarshalTo

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

func (*RoundConfirmation) MarshalToSizedBuffer

func (m *RoundConfirmation) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RoundConfirmation) ProtoMessage

func (*RoundConfirmation) ProtoMessage()

func (*RoundConfirmation) Reset

func (m *RoundConfirmation) Reset()

func (*RoundConfirmation) Size

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

func (*RoundConfirmation) String

func (m *RoundConfirmation) String() string

func (*RoundConfirmation) Unmarshal

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

func (*RoundConfirmation) XXX_DiscardUnknown

func (m *RoundConfirmation) XXX_DiscardUnknown()

func (*RoundConfirmation) XXX_Marshal

func (m *RoundConfirmation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RoundConfirmation) XXX_Merge

func (m *RoundConfirmation) XXX_Merge(src proto.Message)

func (*RoundConfirmation) XXX_Size

func (m *RoundConfirmation) XXX_Size() int

func (*RoundConfirmation) XXX_Unmarshal

func (m *RoundConfirmation) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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