eventhubs

package
v0.0.0-...-cf46bd9 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: MIT Imports: 8 Imported by: 0

README

eventhubs

install

go get -u github.com/Azure/azure-event-hubs-go/v3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EventHubFromEnv

func EventHubFromEnv() (*eventhub.Hub, error)

EventHubFromEnv creates a new *eventhub.Hub authenticated via the AZGO_EVENTHUBS_CONNECTION_STRING environment variable. The event hub should be pre-created and specified as part of the connection string.

func Receive

func Receive() error

Receive receives events from the event hub, marshals them to JSON, and writes them to the standard output.

func Send

func Send(message string) error

Send sends a message to the event hub via the NewEventFromString method.

func SendStdin

func SendStdin() error

SendStdin sends a stream of events from the standard input to the event hub via the NewEventFromString method.

func Test

func Test() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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