azure_eventhub

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(opts *cli.Options) (*eventhub.Hub, error)

NewClient returns a properly configured service bus client

func Read

func Read(opts *cli.Options) error

func Write

func Write(opts *cli.Options) error

Write performs necessary setup and calls AzureServiceBus.Write() to write the actual message

Types

type AzureEventHub

type AzureEventHub struct {
	Options *cli.Options
	MsgDesc *desc.MessageDescriptor
	Client  *eventhub.Hub
	// contains filtered or unexported fields
}

func (*AzureEventHub) Read

func (a *AzureEventHub) Read() error

func (*AzureEventHub) Write

func (a *AzureEventHub) Write(ctx context.Context, value []byte) error

Write writes a message to a random partition on

Jump to

Keyboard shortcuts

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