typeConnectionNameResolverinterface{// Resolve accepts a name, and returns a ConnName with the instance// connection string for the name. If the name cannot be resolved, returns// an error.Resolve(ctxcontext.Context,namestring)(ConnName,error)}
ConnectionNameResolver resolves the connection name string into a valid
instance name. This allows an application to replace the default
resolver with a custom implementation.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-02 UTC."],[[["The latest version of the cloudsqlconn package is 1.16.0, with version 1.12.1 currently displayed."],["The webpage provides access to various versions of the cloudsqlconn package, ranging from the latest 1.16.0 down to 0.1.0, with each version linking to its respective documentation."],["The `ConnName` struct represents a Cloud SQL instance connection name, formatted as \"project:region:name,\" and it offers methods to retrieve the project, region, and instance name."],["The `ConnectionNameResolver` interface allows applications to define custom logic for resolving connection names to instance connection strings, replacing the default behavior with their own implementation."],["The `ParseConnName` function can be utilized to initialize and create a new `ConnName` struct."]]],[]]