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-09-05 UTC."],[[["\u003cp\u003eThe latest version of the cloudsqlconn package is 1.16.0, with version 1.12.1 currently displayed.\u003c/p\u003e\n"],["\u003cp\u003eThe 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.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eConnName\u003c/code\u003e 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.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eConnectionNameResolver\u003c/code\u003e interface allows applications to define custom logic for resolving connection names to instance connection strings, replacing the default behavior with their own implementation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eParseConnName\u003c/code\u003e function can be utilized to initialize and create a new \u003ccode\u003eConnName\u003c/code\u003e struct.\u003c/p\u003e\n"]]],[],null,[]]