System level services for debugging.

This is the first pass at introducing exported services to the system account for generally debugging of blackbox systems.
The first service reports number of subscribers for a given subject. The payload of the request is the subject, and optional queue group, and can contain wildcards.

Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
Derek Collison
2019-09-15 12:26:42 -07:00
parent 8fdf6a4e3a
commit 52430c304a
12 changed files with 835 additions and 100 deletions

View File

@@ -407,7 +407,7 @@ func (c *client) parse(buf []byte) error {
switch c.kind {
case CLIENT:
err = c.processSub(arg)
_, err = c.processSub(arg, false)
case ROUTER:
err = c.processRemoteSub(arg)
case GATEWAY: