events

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2018 License: LGPL-3.0, Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package events is a generated protocol buffer package.

It is generated from these files:

events.proto

It has these top-level messages:

EventDataNewBlock
EventDataNewBlockHeader
EventDataTx
EventDataRoundState
EventDataVote

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents   = fmt.Errorf("proto: integer overflow")
)
View Source
var EventType_name = map[int32]string{
	0:  "EventNewBlock",
	1:  "EventNewBlockHeader",
	2:  "EventTx",
	3:  "EventRoundState",
	4:  "EventVote",
	5:  "EventSwitchToConsensus",
	6:  "EventHookNewRound",
	7:  "EventHookPropose",
	8:  "EventHookPrecommit",
	9:  "EventHookCommit",
	10: "EventHookExecute",
}
View Source
var EventType_value = map[string]int32{
	"EventNewBlock":          0,
	"EventNewBlockHeader":    1,
	"EventTx":                2,
	"EventRoundState":        3,
	"EventVote":              4,
	"EventSwitchToConsensus": 5,
	"EventHookNewRound":      6,
	"EventHookPropose":       7,
	"EventHookPrecommit":     8,
	"EventHookCommit":        9,
	"EventHookExecute":       10,
}

Functions

This section is empty.

Types

type EventDataNewBlock

type EventDataNewBlock struct {
	Block *types.Block `protobuf:"bytes,1,opt,name=Block" json:"Block,omitempty"`
}

func (*EventDataNewBlock) Descriptor

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

func (*EventDataNewBlock) GetBlock

func (m *EventDataNewBlock) GetBlock() *types.Block

func (*EventDataNewBlock) Marshal

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

func (*EventDataNewBlock) MarshalTo

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

func (*EventDataNewBlock) ProtoMessage

func (*EventDataNewBlock) ProtoMessage()

func (*EventDataNewBlock) Reset

func (m *EventDataNewBlock) Reset()

func (*EventDataNewBlock) Size

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

func (*EventDataNewBlock) String

func (m *EventDataNewBlock) String() string

func (*EventDataNewBlock) Unmarshal

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

type EventDataNewBlockHeader

type EventDataNewBlockHeader struct {
	Header *types.Header `protobuf:"bytes,1,opt,name=Header" json:"Header,omitempty"`
}

func (*EventDataNewBlockHeader) Descriptor

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

func (*EventDataNewBlockHeader) GetHeader

func (m *EventDataNewBlockHeader) GetHeader() *types.Header

func (*EventDataNewBlockHeader) Marshal

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

func (*EventDataNewBlockHeader) MarshalTo

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

func (*EventDataNewBlockHeader) ProtoMessage

func (*EventDataNewBlockHeader) ProtoMessage()

func (*EventDataNewBlockHeader) Reset

func (m *EventDataNewBlockHeader) Reset()

func (*EventDataNewBlockHeader) Size

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

func (*EventDataNewBlockHeader) String

func (m *EventDataNewBlockHeader) String() string

func (*EventDataNewBlockHeader) Unmarshal

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

type EventDataRoundState

type EventDataRoundState struct {
	Height int64  `protobuf:"varint,1,opt,name=Height,proto3" json:"Height,omitempty"`
	Round  int64  `protobuf:"varint,2,opt,name=Round,proto3" json:"Round,omitempty"`
	Step   string `protobuf:"bytes,3,opt,name=Step,proto3" json:"Step,omitempty"`
}

func (*EventDataRoundState) Descriptor

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

func (*EventDataRoundState) GetHeight

func (m *EventDataRoundState) GetHeight() int64

func (*EventDataRoundState) GetRound

func (m *EventDataRoundState) GetRound() int64

func (*EventDataRoundState) GetStep

func (m *EventDataRoundState) GetStep() string

func (*EventDataRoundState) Marshal

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

func (*EventDataRoundState) MarshalTo

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

func (*EventDataRoundState) ProtoMessage

func (*EventDataRoundState) ProtoMessage()

func (*EventDataRoundState) Reset

func (m *EventDataRoundState) Reset()

func (*EventDataRoundState) Size

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

func (*EventDataRoundState) String

func (m *EventDataRoundState) String() string

func (*EventDataRoundState) Unmarshal

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

type EventDataTx

type EventDataTx struct {
	Tx    []byte         `protobuf:"bytes,1,opt,name=Tx,proto3" json:"Tx,omitempty"`
	Data  []byte         `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"`
	Log   string         `protobuf:"bytes,3,opt,name=Log,proto3" json:"Log,omitempty"`
	Code  types.CodeType `protobuf:"varint,4,opt,name=Code,proto3,enum=types.CodeType" json:"Code,omitempty"`
	Error string         `protobuf:"bytes,5,opt,name=Error,proto3" json:"Error,omitempty"`
}

func (*EventDataTx) Descriptor

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

func (*EventDataTx) GetCode

func (m *EventDataTx) GetCode() types.CodeType

func (*EventDataTx) GetData

func (m *EventDataTx) GetData() []byte

func (*EventDataTx) GetError

func (m *EventDataTx) GetError() string

func (*EventDataTx) GetLog

func (m *EventDataTx) GetLog() string

func (*EventDataTx) GetTx

func (m *EventDataTx) GetTx() []byte

func (*EventDataTx) Marshal

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

func (*EventDataTx) MarshalTo

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

func (*EventDataTx) ProtoMessage

func (*EventDataTx) ProtoMessage()

func (*EventDataTx) Reset

func (m *EventDataTx) Reset()

func (*EventDataTx) Size

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

func (*EventDataTx) String

func (m *EventDataTx) String() string

func (*EventDataTx) Unmarshal

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

type EventDataVote

type EventDataVote struct {
	Vote *types.Vote `protobuf:"bytes,1,opt,name=Vote" json:"Vote,omitempty"`
}

func (*EventDataVote) Descriptor

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

func (*EventDataVote) GetVote

func (m *EventDataVote) GetVote() *types.Vote

func (*EventDataVote) Marshal

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

func (*EventDataVote) MarshalTo

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

func (*EventDataVote) ProtoMessage

func (*EventDataVote) ProtoMessage()

func (*EventDataVote) Reset

func (m *EventDataVote) Reset()

func (*EventDataVote) Size

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

func (*EventDataVote) String

func (m *EventDataVote) String() string

func (*EventDataVote) Unmarshal

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

type EventType

type EventType int32
const (
	EventType_EventNewBlock          EventType = 0
	EventType_EventNewBlockHeader    EventType = 1
	EventType_EventTx                EventType = 2
	EventType_EventRoundState        EventType = 3
	EventType_EventVote              EventType = 4
	EventType_EventSwitchToConsensus EventType = 5
	EventType_EventHookNewRound      EventType = 6
	EventType_EventHookPropose       EventType = 7
	EventType_EventHookPrecommit     EventType = 8
	EventType_EventHookCommit        EventType = 9
	EventType_EventHookExecute       EventType = 10
)

func (EventType) EnumDescriptor

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

func (EventType) String

func (x EventType) String() string

Jump to

Keyboard shortcuts

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