Documentation ¶
Overview ¶
Package event implements an event streaming platform to communicate and allow sharing of all events to different servers.
Index ¶
- func WithTraces(cfg trace.Config, logs *zap.Logger) func(*Event)
- type Event
- func (e *Event) CloseReaders()
- func (e *Event) CloseTraceReader(c trace.Channel)
- func (e *Event) NewBlockReader() chan validator.Validator
- func (e *Event) NewReader() chan Message
- func (e *Event) NewTraceReader() *trace.Channel
- func (e *Event) Push(m Message)
- func (e *Event) PushBlock(block validator.Validator)
- func (e *Event) PushTrace(blockID string, state trace.State)
- type EventType
- type Message
- type Stub
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
Event represents a new adapter Event.
func (*Event) CloseReaders ¶
func (e *Event) CloseReaders()
CloseReaders closes all message reader channels.
func (*Event) CloseTraceReader ¶
CloseTraceReader closes the trace reader channel.
func (*Event) NewBlockReader ¶
NewBlockReader creates a new block reader channel.
func (*Event) NewTraceReader ¶
NewTraceReader creates a new trace reader channel.
type EventType ¶
type EventType int
EventType represents a message event type.
Constants for different event types.
Click to show internal directories.
Click to hide internal directories.