Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnName ¶
type ConnName struct {
// contains filtered or unexported fields
}
ConnName represents the "instance connection name", in the format "project:region:name".
func ParseConnName ¶
ParseConnName initializes a new ConnName struct.
func ParseConnNameWithDomainName ¶ added in v1.13.0
ParseConnNameWithDomainName initializes a new ConnName struct, also setting the domain name.
func (*ConnName) DomainName ¶ added in v1.13.0
DomainName returns the domain name for this instance
func (*ConnName) HasDomainName ¶ added in v1.13.0
HasDomainName returns the Cloud SQL domain name
type ConnectionNameResolver ¶ added in v1.12.0
type ConnectionNameResolver interface { // 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(ctx context.Context, name string) (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.
Click to show internal directories.
Click to hide internal directories.