eventhubs

package
v0.0.0-...-ebb33e4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAzureEventHubs

func NewAzureEventHubs(logger logger.Logger) pubsub.PubSub

NewAzureEventHubs returns a new Azure Event hubs instance.

Types

type AzureEventHubs

type AzureEventHubs struct {
	*impl.AzureEventHubs
}

AzureEventHubs allows sending/receiving Azure Event Hubs events.

func (*AzureEventHubs) BulkPublish

BulkPublish sends data to Azure Event Hubs in bulk.

func (*AzureEventHubs) Close

func (aeh *AzureEventHubs) Close() (err error)

func (*AzureEventHubs) Features

func (aeh *AzureEventHubs) Features() []pubsub.Feature

func (*AzureEventHubs) GetComponentMetadata

func (aeh *AzureEventHubs) GetComponentMetadata() map[string]string

GetComponentMetadata returns the metadata of the component.

func (*AzureEventHubs) Init

func (aeh *AzureEventHubs) Init(_ context.Context, metadata pubsub.Metadata) error

Init the object.

func (*AzureEventHubs) Publish

func (aeh *AzureEventHubs) Publish(ctx context.Context, req *pubsub.PublishRequest) error

Publish sends a message to Azure Event Hubs.

func (*AzureEventHubs) Subscribe

func (aeh *AzureEventHubs) Subscribe(ctx context.Context, req pubsub.SubscribeRequest, handler pubsub.Handler) error

Subscribe receives data from Azure Event Hubs.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL