MCPcopy Index your code
hub / github.com/GoogleCloudPlatform/cloud-sql-proxy / Dialer

Interface Dialer

cloudsql/cloudsql.go:26–34  ·  view source on GitHub ↗

Dialer dials a Cloud SQL instance and returns its database engine version.

Source from the content-addressed store, hash-verified

24
25// Dialer dials a Cloud SQL instance and returns its database engine version.
26type Dialer interface {
27 // Dial returns a connection to the specified instance.
28 Dial(ctx context.Context, inst string, opts ...cloudsqlconn.DialOption) (net.Conn, error)
29 // EngineVersion retrieves the provided instance's database version (e.g.,
30 // POSTGRES_14)
31 EngineVersion(ctx context.Context, inst string) (string, error)
32
33 io.Closer
34}
35
36// Logger is the interface used throughout the project for logging.
37type Logger interface {

Callers 10

dialTCPFunction · 0.65
CheckConnectionsMethod · 0.65
serveSocketMountMethod · 0.65
tryDialUnixFunction · 0.65
TestFUSECloseFunction · 0.65
TestClientInitializationFunction · 0.65
NewClientFunction · 0.65
newSocketMountMethod · 0.65

Implementers 3

fakeDialerinternal/healthcheck/healthcheck_test.
fakeDialerinternal/proxy/proxy_test.go
spyDialercmd/root_test.go

Calls

no outgoing calls

Tested by

no test coverage detected