WithMaxConnections sets the maximum allowed number of connections. Default is no limit.
(mc uint64)
| 53 | // WithMaxConnections sets the maximum allowed number of connections. Default |
| 54 | // is no limit. |
| 55 | func 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. |
no outgoing calls