File tree 3 files changed +18
-8
lines changed
3 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -51,14 +51,15 @@ type SrvRequestCmd struct {
51
51
includeAll bool
52
52
includeDetails bool
53
53
54
- detail bool
55
- sortOpt string
56
- cidFilter uint64
57
- stateFilter string
58
- userFilter string
59
- accountFilter string
60
- subjectFilter string
61
- nameFilter string
54
+ detail bool
55
+ sortOpt string
56
+ cidFilter uint64
57
+ stateFilter string
58
+ userFilter string
59
+ accountFilter string
60
+ subjectFilter string
61
+ nameFilter string
62
+ accountSubscriptions bool
62
63
63
64
jsServerOnly bool
64
65
jsEnabled bool
@@ -100,6 +101,7 @@ func configureServerRequestCommand(srv *fisk.CmdClause) {
100
101
gwyz .Arg ("filter-name" , "Filter results on gateway name" ).PlaceHolder ("NAME" ).StringVar (& c .nameFilter )
101
102
gwyz .Flag ("filter-account" , "Show only a certain account in account detail" ).PlaceHolder ("ACCOUNT" ).StringVar (& c .accountFilter )
102
103
gwyz .Flag ("accounts" , "Show account detail" ).UnNegatableBoolVar (& c .detail )
104
+ gwyz .Flag ("subscriptions" , "Show subscription details" ).Default ("true" ).BoolVar (& c .accountSubscriptions )
103
105
104
106
healthz := req .Command ("jetstream-health" , "Request JetStream health status" ).Alias ("healthz" ).Action (c .healthz )
105
107
healthz .Arg ("wait" , "Wait for a certain number of responses" ).Uint32Var (& c .waitFor )
@@ -397,6 +399,11 @@ func (c *SrvRequestCmd) gwyz(_ *fisk.ParseContext) error {
397
399
EventFilterOptions : c .reqFilter (),
398
400
}
399
401
402
+ if c .accountFilter != "" && c .detail {
403
+ opts .GatewayzOptions .AccountSubscriptions = c .accountSubscriptions
404
+ opts .GatewayzOptions .AccountSubscriptionsDetail = c .accountSubscriptions
405
+ }
406
+
400
407
res , err := c .doReq ("GATEWAYZ" , & opts , nc )
401
408
if err != nil {
402
409
return err
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ require (
61
61
github.com/rivo/uniseg v0.4.7 // indirect
62
62
github.com/shopspring/decimal v1.4.0 // indirect
63
63
github.com/spf13/cast v1.7.1 // indirect
64
+ go.uber.org/automaxprocs v1.6.0 // indirect
64
65
golang.org/x/exp v0.0.0-20250218142911-aa4b98e5adaa // indirect
65
66
golang.org/x/net v0.35.0 // indirect
66
67
golang.org/x/sys v0.30.0 // indirect
Original file line number Diff line number Diff line change @@ -157,6 +157,8 @@ github.com/synadia-io/jwt-auth-builder.go v0.0.4/go.mod h1:8WYR7+nLQcDMBpocuPgdF
157
157
github.com/tylertreat/hdrhistogram-writer v0.0.0-20210816161836-2e440612a39f h1:SGznmvCovewbaSgBsHgdThtWsLj5aCLX/3ZXMLd1UD0 =
158
158
github.com/tylertreat/hdrhistogram-writer v0.0.0-20210816161836-2e440612a39f /go.mod h1:IY84XkhrEJTdHYLNy/zObs8mXuUAp9I65VyarbPSCCY =
159
159
github.com/yuin/goldmark v1.4.13 /go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY =
160
+ go.uber.org/automaxprocs v1.6.0 h1:O3y2/QNTOdbF+e/dpXNNW7Rx2hZ4sTIPyybbxyNqTUs =
161
+ go.uber.org/automaxprocs v1.6.0 /go.mod h1:ifeIMSnPZuznNm6jmdzmU3/bfk01Fe2fotchwEFJ8r8 =
160
162
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2 /go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w =
161
163
golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529 /go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI =
162
164
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 /go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc =
You can’t perform that action at this time.
0 commit comments