MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/cloud-sql-proxy / nextPort

Method nextPort

internal/proxy/proxy.go:506–510  ·  view source on GitHub ↗

nextPort returns the next port based on the initial global value.

()

Source from the content-addressed store, hash-verified

504
505// nextPort returns the next port based on the initial global value.
506func (c *portConfig) nextPort() int {
507 p := c.global
508 c.global++
509 return p
510}
511
512func (c *portConfig) nextDBPort(version string) int {
513 switch {

Callers 2

nextDBPortMethod · 0.95
newSocketMountMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected