We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a62dc7 commit 560cb90Copy full SHA for 560cb90
1 file changed
internal/proxy/proxy.go
@@ -615,6 +615,11 @@ func (c *Client) ConnCount() (uint64, uint64) {
615
return atomic.LoadUint64(&c.connCount), c.conf.MaxConnections
616
}
617
618
+// InstanceCount returns the number of configured instances.
619
+func (c *Client) InstanceCount() int {
620
+ return len(c.conf.Instances)
621
+}
622
+
623
// Serve starts proxying connections for all configured instances using the
624
// associated socket.
625
func (c *Client) Serve(ctx context.Context, notify func()) error {
0 commit comments