Categorygithub.com/datadog/azure-amqp-common-go
modulepackage
0.7.0
Repository: https://github.com/datadog/azure-amqp-common-go.git
Documentation: pkg.go.dev

# README

Azure AMQP Common

Go Report Card godoc Build Status

This project contains reusable components for AMQP based services like Event Hub and Service Bus. You will find abstractions over authentication, claims-based security, connection string parsing, checkpointing and RPC for AMQP.

If you are looking for the Azure Event Hub library for go, you can find it here.

Install

Via dep

dep ensure -add "github.com/Azure/azure-amqp-common-go"

Or via go get

go get github.com/Azure/azure-amqp-common-go

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

License

MIT, see LICENSE.

Contribute

See CONTRIBUTING.md.

# Packages

Package aad provides an implementation of an Azure Active Directory JWT provider which implements TokenProvider from package auth for use with Azure Event Hubs and Service Bus.
Package auth provides an abstraction over claims-based security for Azure Event Hub and Service Bus.
Package cbs provides the functionality for negotiating claims-based security over AMQP for use in Azure Service Bus and Event Hubs.
No description provided by the author
No description provided by the author
Package persist provides abstract structures for checkpoint persistence.
Package rpc provides functionality for request / reply messaging.
Package sas provides SAS token functionality which implements TokenProvider from package auth for use with Azure Event Hubs and Service Bus.
No description provided by the author

# Functions

PtrBool takes a boolean and returns a pointer to that bool.
PtrInt32 takes a int32 and returns a pointer to that int32.
PtrInt64 takes a int64 and returns a pointer to that int64.
PtrString takes a string and returns a pointer to that string.
Retry will attempt to retry an action a number of times if the action returns a retryable error.

# Type aliases

Retryable represents an error which should be able to be retried.