Documentation
¶
Index ¶
- Variables
- func List(evts ...*Event) *stdtypes.EventList
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (event *Event) Dest() stdtypes.ModuleID
- func (x *Event) GetApp() *apppb.Event
- func (x *Event) GetAvailability() *availabilitypb.Event
- func (x *Event) GetBatchDb() *batchdbpb.Event
- func (x *Event) GetBatchFetcher() *batchfetcherpb.Event
- func (x *Event) GetBcb() *bcbpb.Event
- func (x *Event) GetCheckpoint() *checkpointpb.Event
- func (x *Event) GetChkpValidator() *chkpvalidatorpb.Event
- func (x *Event) GetCrypto() *cryptopb.Event
- func (x *Event) GetDestModule() string
- func (x *Event) GetHasher() *hasherpb.Event
- func (x *Event) GetIss() *isspb.Event
- func (x *Event) GetMempool() *mempoolpb.Event
- func (x *Event) GetOrderer() *ordererpb.Event
- func (x *Event) GetPingPong() *pingpongpb.Event
- func (x *Event) GetPprepValiadtor() *pprepvalidatorpb.Event
- func (x *Event) GetSerialized() *SerializedEvent
- func (x *Event) GetTester() *testerpb.Tester
- func (x *Event) GetTestingString() *wrapperspb.StringValue
- func (x *Event) GetTestingUint() *wrapperspb.UInt64Value
- func (x *Event) GetThreshCrypto() *threshcryptopb.Event
- func (x *Event) GetTransport() *transportpb.Event
- func (m *Event) GetType() isEvent_Type
- func (event *Event) NewDest(newDest stdtypes.ModuleID) stdtypes.Event
- func (event *Event) NewSrc(newSrc stdtypes.ModuleID) stdtypes.Event
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (*Event) ReflectTypeOptions() []reflect.Type
- func (x *Event) Reset()
- func (event *Event) Src() stdtypes.ModuleID
- func (x *Event) String() string
- func (event *Event) ToBytes() ([]byte, error)
- func (event *Event) ToString() string
- type Event_App
- type Event_Availability
- type Event_BatchDb
- type Event_BatchFetcher
- type Event_Bcb
- type Event_Checkpoint
- type Event_ChkpValidator
- type Event_Crypto
- type Event_Hasher
- type Event_Iss
- type Event_Mempool
- type Event_Orderer
- type Event_PingPong
- type Event_PprepValiadtor
- type Event_Serialized
- type Event_Tester
- type Event_TestingString
- type Event_TestingUint
- type Event_ThreshCrypto
- type Event_Transport
- type Event_Type
- type Event_TypeWrapper
- type SerializedEvent
Constants ¶
This section is empty.
Variables ¶
var File_eventpb_eventpb_proto protoreflect.FileDescriptor
Functions ¶
Types ¶
type Event ¶
type Event struct { DestModule string `protobuf:"bytes,1,opt,name=dest_module,json=destModule,proto3" json:"dest_module,omitempty"` // Types that are assignable to Type: // *Event_Hasher // *Event_Bcb // *Event_Mempool // *Event_Availability // *Event_BatchDb // *Event_BatchFetcher // *Event_ThreshCrypto // *Event_Checkpoint // *Event_Iss // *Event_Orderer // *Event_Crypto // *Event_App // *Event_Transport // *Event_ChkpValidator // *Event_PprepValiadtor // *Event_Serialized // *Event_PingPong // *Event_TestingString // *Event_TestingUint // *Event_Tester Type isEvent_Type `protobuf_oneof:"type"` // contains filtered or unexported fields }
Event represents a state event to be injected into the state machine
func (*Event) Descriptor
deprecated
func (*Event) GetAvailability ¶
func (x *Event) GetAvailability() *availabilitypb.Event
func (*Event) GetBatchDb ¶
func (*Event) GetBatchFetcher ¶
func (x *Event) GetBatchFetcher() *batchfetcherpb.Event
func (*Event) GetCheckpoint ¶
func (x *Event) GetCheckpoint() *checkpointpb.Event
func (*Event) GetChkpValidator ¶
func (x *Event) GetChkpValidator() *chkpvalidatorpb.Event
func (*Event) GetDestModule ¶
func (*Event) GetMempool ¶
func (*Event) GetOrderer ¶
func (*Event) GetPingPong ¶
func (x *Event) GetPingPong() *pingpongpb.Event
func (*Event) GetPprepValiadtor ¶
func (x *Event) GetPprepValiadtor() *pprepvalidatorpb.Event
func (*Event) GetSerialized ¶
func (x *Event) GetSerialized() *SerializedEvent
func (*Event) GetTestingString ¶
func (x *Event) GetTestingString() *wrapperspb.StringValue
func (*Event) GetTestingUint ¶
func (x *Event) GetTestingUint() *wrapperspb.UInt64Value
func (*Event) GetThreshCrypto ¶
func (x *Event) GetThreshCrypto() *threshcryptopb.Event
func (*Event) GetTransport ¶
func (x *Event) GetTransport() *transportpb.Event
func (*Event) NewDest ¶
NewDest returns a shallow copy of the event with a new destination module ID.
func (*Event) NewSrc ¶
NewSrc returns a shallow copy of this Event with an updated source module ID. This method is not yet implemented in proto events.
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
func (*Event) ReflectTypeOptions ¶
func (*Event) Src ¶
Src returns the module that emitted the event. While this information is not always necessary for the system operation, it is useful for analyzing event traces and debugging.
func (*Event) ToBytes ¶
ToBytes returns a serialized representation of the event as a slice of bytes from which the event can be reconstructed. Note that ToBytes does not necessarily guarantee the output to be deterministic. Even multiple subsequent calls to ToBytes on the same event object might return different byte slices.
type Event_Availability ¶
type Event_Availability struct {
Availability *availabilitypb.Event `protobuf:"bytes,13,opt,name=availability,proto3,oneof"`
}
func (*Event_Availability) Unwrap ¶
func (w *Event_Availability) Unwrap() *availabilitypb.Event
type Event_BatchDb ¶
type Event_BatchDb struct {
BatchDb *batchdbpb.Event `protobuf:"bytes,14,opt,name=batch_db,json=batchDb,proto3,oneof"`
}
func (*Event_BatchDb) Unwrap ¶
func (w *Event_BatchDb) Unwrap() *batchdbpb.Event
type Event_BatchFetcher ¶
type Event_BatchFetcher struct {
BatchFetcher *batchfetcherpb.Event `protobuf:"bytes,15,opt,name=batch_fetcher,json=batchFetcher,proto3,oneof"`
}
func (*Event_BatchFetcher) Unwrap ¶
func (w *Event_BatchFetcher) Unwrap() *batchfetcherpb.Event
type Event_Checkpoint ¶
type Event_Checkpoint struct {
Checkpoint *checkpointpb.Event `protobuf:"bytes,17,opt,name=checkpoint,proto3,oneof"`
}
func (*Event_Checkpoint) Unwrap ¶
func (w *Event_Checkpoint) Unwrap() *checkpointpb.Event
type Event_ChkpValidator ¶
type Event_ChkpValidator struct {
ChkpValidator *chkpvalidatorpb.Event `protobuf:"bytes,24,opt,name=chkp_validator,json=chkpValidator,proto3,oneof"`
}
func (*Event_ChkpValidator) Unwrap ¶
func (w *Event_ChkpValidator) Unwrap() *chkpvalidatorpb.Event
type Event_Crypto ¶
type Event_Crypto struct {
Crypto *cryptopb.Event `protobuf:"bytes,21,opt,name=crypto,proto3,oneof"`
}
func (*Event_Crypto) Unwrap ¶
func (w *Event_Crypto) Unwrap() *cryptopb.Event
type Event_Hasher ¶
type Event_Hasher struct { // Module-specific events Hasher *hasherpb.Event `protobuf:"bytes,10,opt,name=hasher,proto3,oneof"` }
func (*Event_Hasher) Unwrap ¶
func (w *Event_Hasher) Unwrap() *hasherpb.Event
type Event_Mempool ¶
type Event_Mempool struct {
Mempool *mempoolpb.Event `protobuf:"bytes,12,opt,name=mempool,proto3,oneof"`
}
func (*Event_Mempool) Unwrap ¶
func (w *Event_Mempool) Unwrap() *mempoolpb.Event
type Event_Orderer ¶
type Event_Orderer struct {
Orderer *ordererpb.Event `protobuf:"bytes,20,opt,name=orderer,proto3,oneof"`
}
func (*Event_Orderer) Unwrap ¶
func (w *Event_Orderer) Unwrap() *ordererpb.Event
type Event_PingPong ¶
type Event_PingPong struct { // Events for code samples PingPong *pingpongpb.Event `protobuf:"bytes,200,opt,name=ping_pong,json=pingPong,proto3,oneof"` }
func (*Event_PingPong) Unwrap ¶
func (w *Event_PingPong) Unwrap() *pingpongpb.Event
type Event_PprepValiadtor ¶
type Event_PprepValiadtor struct {
PprepValiadtor *pprepvalidatorpb.Event `protobuf:"bytes,25,opt,name=pprep_valiadtor,json=pprepValiadtor,proto3,oneof"`
}
func (*Event_PprepValiadtor) Unwrap ¶
func (w *Event_PprepValiadtor) Unwrap() *pprepvalidatorpb.Event
type Event_Serialized ¶
type Event_Serialized struct { // Temporarily used by the Gzip event writer for inclusion of non-proto events in the proto-based event record. Serialized *SerializedEvent `protobuf:"bytes,100,opt,name=serialized,proto3,oneof"` }
func (*Event_Serialized) Unwrap ¶
func (w *Event_Serialized) Unwrap() *SerializedEvent
type Event_Tester ¶
type Event_Tester struct {
Tester *testerpb.Tester `protobuf:"bytes,303,opt,name=tester,proto3,oneof"`
}
func (*Event_Tester) Unwrap ¶
func (w *Event_Tester) Unwrap() *testerpb.Tester
type Event_TestingString ¶
type Event_TestingString struct { // for unit-tests TestingString *wrapperspb.StringValue `protobuf:"bytes,301,opt,name=testingString,proto3,oneof"` }
func (*Event_TestingString) Unwrap ¶
func (w *Event_TestingString) Unwrap() *wrapperspb.StringValue
type Event_TestingUint ¶
type Event_TestingUint struct {
TestingUint *wrapperspb.UInt64Value `protobuf:"bytes,302,opt,name=testingUint,proto3,oneof"`
}
func (*Event_TestingUint) Unwrap ¶
func (w *Event_TestingUint) Unwrap() *wrapperspb.UInt64Value
type Event_ThreshCrypto ¶
type Event_ThreshCrypto struct {
ThreshCrypto *threshcryptopb.Event `protobuf:"bytes,16,opt,name=thresh_crypto,json=threshCrypto,proto3,oneof"`
}
func (*Event_ThreshCrypto) Unwrap ¶
func (w *Event_ThreshCrypto) Unwrap() *threshcryptopb.Event
type Event_Transport ¶
type Event_Transport struct {
Transport *transportpb.Event `protobuf:"bytes,23,opt,name=transport,proto3,oneof"`
}
func (*Event_Transport) Unwrap ¶
func (w *Event_Transport) Unwrap() *transportpb.Event
type Event_Type ¶
type Event_Type = isEvent_Type
type Event_TypeWrapper ¶
type Event_TypeWrapper[T any] interface { Event_Type Unwrap() *T }
type SerializedEvent ¶
type SerializedEvent struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*SerializedEvent) Descriptor
deprecated
func (*SerializedEvent) Descriptor() ([]byte, []int)
Deprecated: Use SerializedEvent.ProtoReflect.Descriptor instead.
func (*SerializedEvent) GetData ¶
func (x *SerializedEvent) GetData() []byte
func (*SerializedEvent) ProtoMessage ¶
func (*SerializedEvent) ProtoMessage()
func (*SerializedEvent) ProtoReflect ¶
func (x *SerializedEvent) ProtoReflect() protoreflect.Message
func (*SerializedEvent) Reset ¶
func (x *SerializedEvent) Reset()
func (*SerializedEvent) String ¶
func (x *SerializedEvent) String() string