Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AzureConfig ¶
type AzureConfig struct { helper.InputOperator // required Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"` Name string `json:"name,omitempty" yaml:"name,omitempty"` Group string `json:"group,omitempty" yaml:"group,omitempty"` ConnectionString string `json:"connection_string,omitempty" yaml:"connection_string,omitempty"` // optional PrefetchCount uint32 `json:"prefetch_count,omitempty" yaml:"prefetch_count,omitempty"` StartAt string `json:"start_at,omitempty" yaml:"start_at,omitempty"` // contains filtered or unexported fields }
AzureConfig is the configuration of a Azure Event Hub input operator.
func (*AzureConfig) Build ¶
func (a *AzureConfig) Build(buildContext operator.BuildContext, input helper.InputConfig) error
type EventHub ¶
type EventHub struct { AzureConfig Persist *Persister WG sync.WaitGroup Handler func(context.Context, *azhub.Event) error // contains filtered or unexported fields }
Eventhub provides methods for reading events from Azure Event Hub.
func (*EventHub) Connect ¶
Connect initializes the connection to Azure Event Hub ensures the input parameters are valid
func (*EventHub) StartConsumers ¶
StartConsumers starts an Azure Event Hub handler for each partition_id.
func (*EventHub) StopConsumers ¶
StopConsumers closes connections to Azure Event Hub.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.