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-05-30 UTC."],[[["The webpage provides documentation for various versions of the `cloudsqlconn` package, with version 1.16.0 being the latest."],["The `ConnName` struct represents an instance connection name, structured as \"project:region:name\"."],["Functions like `ParseConnName` and `ParseConnNameWithDomainName` are available to initialize `ConnName` structs, with the latter also setting the domain name."],["The `ConnName` struct offers methods to retrieve the domain name, instance name, project, and region associated with a Cloud SQL instance."],["The `ConnectionNameResolver` interface allows applications to implement custom logic for resolving connection name strings into valid instance names."]]],[]]