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

Function newPortConfig

internal/proxy/proxy.go:496–503  ·  view source on GitHub ↗
(global int)

Source from the content-addressed store, hash-verified

494}
495
496func newPortConfig(global int) *portConfig {
497 return &portConfig{
498 global: global,
499 postgres: 5432,
500 mysql: 3306,
501 sqlserver: 1433,
502 }
503}
504
505// nextPort returns the next port based on the initial global value.
506func (c *portConfig) nextPort() int {

Callers 1

NewClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected