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

Function WithMaxConnections

cmd/options.go:55–59  ·  view source on GitHub ↗

WithMaxConnections sets the maximum allowed number of connections. Default is no limit.

(mc uint64)

Source from the content-addressed store, hash-verified

53// WithMaxConnections sets the maximum allowed number of connections. Default
54// is no limit.
55func WithMaxConnections(mc uint64) Option {
56 return func(c *Command) {
57 c.conf.MaxConnections = mc
58 }
59}
60
61// WithUserAgent sets additional user agents for Admin API tracking and should
62// be a space separated list of additional user agents, e.g.

Callers 2

TestCommandOptionsFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestCommandOptionsFunction · 0.68