eventhubs

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: MIT Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureEventHubs

type AzureEventHubs struct {
	// contains filtered or unexported fields
}

AzureEventHubs allows sending/receiving Azure Event Hubs events

func NewAzureEventHubs

func NewAzureEventHubs(logger logger.Logger) *AzureEventHubs

NewAzureEventHubs returns a new Azure Event hubs instance

func (*AzureEventHubs) Init

func (aeh *AzureEventHubs) Init(metadata pubsub.Metadata) error

Init connects to Azure Event Hubs

func (*AzureEventHubs) Publish

func (aeh *AzureEventHubs) Publish(req *pubsub.PublishRequest) error

Publish sends data to Azure Event Hubs

func (*AzureEventHubs) Subscribe

func (aeh *AzureEventHubs) Subscribe(req pubsub.SubscribeRequest, handler func(msg *pubsub.NewMessage) error) 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