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 ConnectionStringProperties ¶ added in v1.7.0
type ConnectionStringProperties struct { // Endpoint is the Endpoint value in the connection string. // Ex: sb://example.servicebus.windows.net Endpoint string // EntityPath is EntityPath value in the connection string. EntityPath *string // FullyQualifiedNamespace is the Endpoint value without the protocol scheme. // Ex: example.servicebus.windows.net FullyQualifiedNamespace string SharedAccessKey *string SharedAccessKeyName *string SharedAccessSignature *string // Emulator indicates that the connection string is for an emulator: // ex: Endpoint=localhost:6765;SharedAccessKeyName=<< REDACTED >>;SharedAccessKey=<< REDACTED >>;UseDevelopmentEmulator=true Emulator bool }
ConnectionStringProperties are the properties of a connection string as returned by ParseConnectionString.
func ParseConnectionString ¶ added in v1.7.0
func ParseConnectionString(connStr string) (ConnectionStringProperties, error)
ParseConnectionString takes a connection string from the Azure portal and returns the parsed representation.
There are two supported formats:
- Connection strings generated from the portal (or elsewhere) that contain an embedded key and keyname.
- A connection string with an embedded SharedAccessSignature: Endpoint=sb://<sb>.servicebus.windows.net;SharedAccessSignature=SharedAccessSignature sr=<sb>.servicebus.windows.net&sig=<base64-sig>&se=<expiry>&skn=<keyname>"
Click to show internal directories.
Click to hide internal directories.