Documentation ¶
Index ¶
- func NewAzureEventHubs(logger logger.Logger) bindings.InputOutputBinding
- type AzureEventHubs
- func (a *AzureEventHubs) Close() (err error)
- func (a *AzureEventHubs) Init(metadata bindings.Metadata) error
- func (a *AzureEventHubs) Invoke(ctx context.Context, req *bindings.InvokeRequest) (*bindings.InvokeResponse, error)
- func (a *AzureEventHubs) Operations() []bindings.OperationKind
- func (a *AzureEventHubs) Read(ctx context.Context, handler bindings.Handler) error
- func (a *AzureEventHubs) RegisterEventProcessor(ctx context.Context, handler bindings.Handler) error
- func (a *AzureEventHubs) RegisterPartitionedEventProcessor(ctx context.Context, handler bindings.Handler) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAzureEventHubs ¶
func NewAzureEventHubs(logger logger.Logger) bindings.InputOutputBinding
NewAzureEventHubs returns a new Azure Event hubs instance.
Types ¶
type AzureEventHubs ¶
type AzureEventHubs struct {
// contains filtered or unexported fields
}
AzureEventHubs allows sending/receiving Azure Event Hubs events.
func (*AzureEventHubs) Close ¶ added in v1.4.4
func (a *AzureEventHubs) Close() (err error)
func (*AzureEventHubs) Init ¶
func (a *AzureEventHubs) Init(metadata bindings.Metadata) error
Init performs metadata init.
func (*AzureEventHubs) Invoke ¶
func (a *AzureEventHubs) Invoke(ctx context.Context, req *bindings.InvokeRequest) (*bindings.InvokeResponse, error)
Write posts an event hubs message.
func (*AzureEventHubs) Operations ¶
func (a *AzureEventHubs) Operations() []bindings.OperationKind
func (*AzureEventHubs) RegisterEventProcessor ¶
func (a *AzureEventHubs) RegisterEventProcessor(ctx context.Context, handler bindings.Handler) error
RegisterEventProcessor - receive eventhub messages by eventprocessor host by balancing partitions.
func (*AzureEventHubs) RegisterPartitionedEventProcessor ¶
func (a *AzureEventHubs) RegisterPartitionedEventProcessor(ctx context.Context, handler bindings.Handler) error
RegisterPartitionedEventProcessor - receive eventhub messages by partitionID.
Click to show internal directories.
Click to hide internal directories.