Documentation ¶
Index ¶
- type EventListener
- func (el *EventListener) GetEventName() string
- func (el *EventListener) GetEventSourceName() string
- func (el *EventListener) GetEventSourceType() aev1.EventSourceType
- func (el *EventListener) StartListening(ctx context.Context, dispatch func([]byte, ...eventsourcecommon.Option) error) error
- func (el *EventListener) ValidateEventSource(ctx context.Context) error
- type ReceiverType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventListener ¶
type EventListener struct { EventSourceName string EventName string AzureServiceBusEventSource aev1.AzureServiceBusEventSource Metrics *metrics.Metrics }
EventListener implements Eventing for azure events hub event source
func (*EventListener) GetEventName ¶
func (el *EventListener) GetEventName() string
GetEventName returns name of event
func (*EventListener) GetEventSourceName ¶
func (el *EventListener) GetEventSourceName() string
GetEventSourceName returns name of event source
func (*EventListener) GetEventSourceType ¶
func (el *EventListener) GetEventSourceType() aev1.EventSourceType
GetEventSourceType return type of event server
func (*EventListener) StartListening ¶
func (el *EventListener) StartListening(ctx context.Context, dispatch func([]byte, ...eventsourcecommon.Option) error) error
StartListening starts listening events
func (*EventListener) ValidateEventSource ¶
func (el *EventListener) ValidateEventSource(ctx context.Context) error
ValidateEventSource validates azure events hub event source
type ReceiverType ¶
type ReceiverType string
const ( ReceiverTypeQueue ReceiverType = "queue" ReceiverTypeSubscription ReceiverType = "subscription" )
Click to show internal directories.
Click to hide internal directories.