Documentation ¶
Overview ¶
Package events contains a manager for dispatching and receiving arbitrary events.
Index ¶
Constants ¶
View Source
const ( EnvoyConfigurationEvent_EVENT_DISCOVERY_REQUEST_ACK = events.EnvoyConfigurationEvent_EVENT_DISCOVERY_REQUEST_ACK //nolint EnvoyConfigurationEvent_EVENT_DISCOVERY_REQUEST_NACK = events.EnvoyConfigurationEvent_EVENT_DISCOVERY_REQUEST_NACK //nolint EnvoyConfigurationEvent_EVENT_DISCOVERY_RESPONSE = events.EnvoyConfigurationEvent_EVENT_DISCOVERY_RESPONSE //nolint )
re-exported protobuf constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvoyConfigurationEvent ¶
type EnvoyConfigurationEvent = events.EnvoyConfigurationEvent
EnvoyConfigurationEvent re-exports events.EnvoyConfigurationEvent.
type Event ¶
type Event interface { proto.Message GetTime() *timestamppb.Timestamp GetMessage() string }
An Event is any protobuf message that has a time and message.
type EventSinkHandle ¶
type EventSinkHandle string
An EventSinkHandle is a reference to a registered EventSink so that it can be unregistered.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
A Manager manages the dispatching of events to event sinks.
func (*Manager) Register ¶
func (mgr *Manager) Register(sink EventSink) (handle EventSinkHandle)
Register registers an event sink to receive events.
func (*Manager) Unregister ¶
func (mgr *Manager) Unregister(sinkHandle EventSinkHandle)
Unregister unregisters an event sink so it no longer receives events.
Click to show internal directories.
Click to hide internal directories.