package conn
import "github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus/internal/conn"
Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License.
Index ¶
Types ¶
type ConnectionStringProperties ¶
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 is the SharedAccessKey value in the connection string. *string // SharedAccessKeyName is the SharedAccessKeyName value in the connection string. *string // SharedAccessSignature is the SharedAccessSignature value in the connection string. *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 ¶
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>"
Source Files ¶
- Version
- v1.8.0 (latest)
- Published
- Feb 8, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 4 months ago –
Tools for package owners.