Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureEventHubClient ¶
type AzureEventHubClient struct { NamespaceClient eventhub.NamespacesClient GroupClient resources.GroupsClient HubClient eventhub.EventHubsClient Hub *eventhubs.Hub }
func Connect ¶
func Connect(ctx context.Context, subscriptionID, tenantID, clientID, clientSecret string) (*AzureEventHubClient, error)
Connect establishes connection with Azure.
func (*AzureEventHubClient) CreateOrUpdateHub ¶
func (conn *AzureEventHubClient) CreateOrUpdateHub(ctx context.Context, name, region string) (*eventhubs.Hub, error)
CreateOrUpdateHub creates or updates hub with provided name and an Azure region It creates group, namespace and then hub and auth rule to connect to it.
Click to show internal directories.
Click to hide internal directories.