Directories
ΒΆ
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
cheshmhayash
command
Command cheshmhayash is a toolbox for NATS administration.
|
Command cheshmhayash is a toolbox for NATS administration. |
|
internal
|
|
|
auth
Package auth wires OIDC login + HMAC-signed cookie sessions for the HTTP API and bearer-token auth for MCP HTTP.
|
Package auth wires OIDC login + HMAC-signed cookie sessions for the HTTP API and bearer-token auth for MCP HTTP. |
|
cliutil
Package cliutil holds the flags and helpers that several subcommands share: the settings file, the cluster choice, and the schema files.
|
Package cliutil holds the flags and helpers that several subcommands share: the settings file, the cluster choice, and the schema files. |
|
cmd
Package cmd builds the cheshmhayash command tree with urfave/cli v3.
|
Package cmd builds the cheshmhayash command tree with urfave/cli v3. |
|
cmd/bot
Package bot wires the cheshmhayash CLI to the long-lived bot daemon (scheduled scans, chat notifications, manifest store, HTTP listener).
|
Package bot wires the cheshmhayash CLI to the long-lived bot daemon (scheduled scans, chat notifications, manifest store, HTTP listener). |
|
cmd/consumer
Package consumer implements `cheshmhayash consumer`: scan consumers for stale ones, apply a reviewed cleanup manifest, and find which consumer owns a filter subject across clusters.
|
Package consumer implements `cheshmhayash consumer`: scan consumers for stale ones, apply a reviewed cleanup manifest, and find which consumer owns a filter subject across clusters. |
|
cmd/mcp
Package mcp implements `cheshmhayash mcp`: the MCP server.
|
Package mcp implements `cheshmhayash mcp`: the MCP server. |
|
cmd/peer
Package peer implements `cheshmhayash peer check`: find ghost peers that are offline in every Raft group and lead none.
|
Package peer implements `cheshmhayash peer check`: find ghost peers that are offline in every Raft group and lead none. |
|
cmd/pub
Package pub implements `cheshmhayash pub`: publish a message, encoding JSON into protobuf when the subject has a schema, and optionally wait for a reply (request-reply) and print it decoded.
|
Package pub implements `cheshmhayash pub`: publish a message, encoding JSON into protobuf when the subject has a schema, and optionally wait for a reply (request-reply) and print it decoded. |
|
cmd/schemacmd
Package schemacmd implements `cheshmhayash schema`: inspect the loaded protobuf schemas and the subject rules, without a NATS connection.
|
Package schemacmd implements `cheshmhayash schema`: inspect the loaded protobuf schemas and the subject rules, without a NATS connection. |
|
cmd/serve
Package serve implements `cheshmhayash serve`: the HTTP dashboard.
|
Package serve implements `cheshmhayash serve`: the HTTP dashboard. |
|
cmd/stream
Package stream implements `cheshmhayash stream report`: per-stream limits, replication, size and replica placement.
|
Package stream implements `cheshmhayash stream report`: per-stream limits, replication, size and replica placement. |
|
cmd/sub
Package sub implements `cheshmhayash sub`: subscribe to subjects on core NATS and print each message decoded.
|
Package sub implements `cheshmhayash sub`: subscribe to subjects on core NATS and print each message decoded. |
|
codec
Package codec turns NATS payloads into JSON a person can read, and JSON back into payloads.
|
Package codec turns NATS payloads into JSON a person can read, and JSON back into payloads. |
|
config
Package config loads runtime settings via koanf in the layered pattern: struct defaults β settings.toml β CHESHMHAYASH__* environment variables.
|
Package config loads runtime settings via koanf in the layered pattern: struct defaults β settings.toml β CHESHMHAYASH__* environment variables. |
|
handler
Package handler exposes cheshmhayash's HTTP API.
|
Package handler exposes cheshmhayash's HTTP API. |
|
health
Package health finds JetStream assets that misbehave in a JSZ overview: stale consumers, consumers that cannot take more work, streams that can grow without bound or are near a limit, Raft groups without a leader or with replicas that are offline or behind, and ghost peers.
|
Package health finds JetStream assets that misbehave in a JSZ overview: stale consumers, consumers that cannot take more work, streams that can grow without bound or are near a limit, Raft groups without a leader or with replicas that are offline or behind, and ghost peers. |
|
httpserver
Package httpserver runs an http.Server until its context ends and then shuts it down gracefully.
|
Package httpserver runs an http.Server until its context ends and then shuts it down gracefully. |
|
mcp
Package mcp exposes cheshmhayash's NATS admin surface as a Model Context Protocol server.
|
Package mcp exposes cheshmhayash's NATS admin surface as a Model Context Protocol server. |
|
natsx
Package natsx wraps the NATS client with cheshmhayash's request patterns: a single-reply request_json for targeted endpoints and a multi-reply discover for PING-style fan-out.
|
Package natsx wraps the NATS client with cheshmhayash's request patterns: a single-reply request_json for targeted endpoints and a multi-reply discover for PING-style fan-out. |
|
notify
Package notify fans out NATS advisory events (stream/consumer create/update/delete/leader-elected, plus system-account events) to chat webhooks (Slack, Mattermost, Matrix-via-bridge).
|
Package notify fans out NATS advisory events (stream/consumer create/update/delete/leader-elected, plus system-account events) to chat webhooks (Slack, Mattermost, Matrix-via-bridge). |
|
ops/audit
Package audit appends one JSON object per line to a long-lived file.
|
Package audit appends one JSON object per line to a long-lived file. |
|
ops/chatops
Package chatops is the chat-frontend-agnostic command dispatcher.
|
Package chatops is the chat-frontend-agnostic command dispatcher. |
|
ops/cleanup
Package cleanup applies a manifest against live NATS clusters.
|
Package cleanup applies a manifest against live NATS clusters. |
|
ops/infra/config
Package config loads cheshmhayash's configuration from a YAML file and environment variables, layered in that order.
|
Package config loads cheshmhayash's configuration from a YAML file and environment variables, layered in that order. |
|
ops/infra/httpsrv
Package httpsrv hosts the bot's HTTP listener: a read-only manifest viewer, a health endpoint, and (in follow-up commits) the slash-command handler plus signed approval URLs.
|
Package httpsrv hosts the bot's HTTP listener: a read-only manifest viewer, a health endpoint, and (in follow-up commits) the slash-command handler plus signed approval URLs. |
|
ops/infra/mattermost
Package mattermost implements pull-mode bot transport for Mattermost instances that don't support outbound slash commands.
|
Package mattermost implements pull-mode bot transport for Mattermost instances that don't support outbound slash commands. |
|
ops/infra/metrics
Package metrics holds the bot's Prometheus instrumentation.
|
Package metrics holds the bot's Prometheus instrumentation. |
|
ops/infra/natsctx
Package natsctx reads ~/.config/nats/context/*.json files (the same store the official `nats` CLI uses) and dials a connection from them.
|
Package natsctx reads ~/.config/nats/context/*.json files (the same store the official `nats` CLI uses) and dials a connection from them. |
|
ops/infra/notify
Package notify abstracts over chat / webhook destinations the bot can post messages to.
|
Package notify abstracts over chat / webhook destinations the bot can post messages to. |
|
ops/infra/scheduler
Package scheduler wraps robfig/cron/v3 with the cheshmhayash job shape.
|
Package scheduler wraps robfig/cron/v3 with the cheshmhayash job shape. |
|
ops/infra/store
Package store persists manifests so the HTTP listener and slash-command handler can refer back to them by ID.
|
Package store persists manifests so the HTTP listener and slash-command handler can refer back to them by ID. |
|
ops/manifest
Package manifest defines the hand-editable YAML document that mediates between `cheshmhayash consumer scan` and `cheshmhayash consumer apply`.
|
Package manifest defines the hand-editable YAML document that mediates between `cheshmhayash consumer scan` and `cheshmhayash consumer apply`. |
|
ops/owners
Package owners routes manifest entries to a service team's notify list.
|
Package owners routes manifest entries to a service team's notify list. |
|
ops/protect
Package protect decides which consumers cheshmhayash must never delete because something else owns their lifecycle.
|
Package protect decides which consumers cheshmhayash must never delete because something else owns their lifecycle. |
|
ops/scanner
Package scanner walks JetStream streams and consumers and classifies them.
|
Package scanner walks JetStream streams and consumers and classifies them. |
|
render
Package render prints decoded NATS messages for a person (pretty) or for a program (one JSON object per line).
|
Package render prints decoded NATS messages for a person (pretty) or for a program (one JSON object per line). |
|
schema
Package schema holds the protobuf schemas that cheshmhayash decodes NATS payloads with.
|
Package schema holds the protobuf schemas that cheshmhayash decodes NATS payloads with. |
|
version
Package version exposes the cheshmhayash binary version to other subsystems (HTTP /api/version, MCP initialize handshake, etc.).
|
Package version exposes the cheshmhayash binary version to other subsystems (HTTP /api/version, MCP initialize handshake, etc.). |
Click to show internal directories.
Click to hide internal directories.



