conn

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ParsedConn

type ParsedConn struct {
	Namespace string
	HubName   string

	KeyName string
	Key     string

	SAS string
}

ParsedConn is the structure of a parsed Service Bus or Event Hub connection string.

func ParsedConnectionFromStr

func ParsedConnectionFromStr(connStr string) (*ParsedConn, error)

ParsedConnectionFromStr takes a string connection string from the Azure portal and returns the parsed representation. The method will return an error if the Endpoint, SharedAccessKeyName or SharedAccessKey is empty.

Jump to

Keyboard shortcuts

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