Documentation
¶
Overview ¶
Package scanner walks JetStream streams and consumers and classifies them.
A consumer is classified as:
ACTIVE — push-bound, has pull waiters, or its last delivery is within
Options.MinIdle.
STALE — exists but is past Options.MinIdle and exceeds Options.MinPending.
OK — exists and is healthy but does not meet the reporting thresholds.
ABSENT — only used in PeerStatus; consumer does not exist on the peer.
ERR — could not be queried.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Row ¶
type Row struct {
Cluster string `json:"cluster"`
Stream string `json:"stream"`
Consumer string `json:"consumer"`
Status Status `json:"status"`
NumPending int64 `json:"num_pending"`
NumWaiting int `json:"num_waiting"`
PushBound bool `json:"push_bound"`
LastAck time.Time `json:"last_ack,omitzero"`
Idle time.Duration `json:"idle"`
PeerStatus Status `json:"peer_status,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.