The bus module's tools hold no grant of the seat's acting verbs (design 25 § 12.3): nats_create, nats_apply, nats_recreate and nats_drop write a request into the keeper's own state requests, stamped with stdio.CallerOf (a name in the arguments is never the caller), and read its end back. recreate and drop raise the operator's ask first, its option binding exactly that act; the keeper acts only on the router's warrant for it (Warrant.For, Option.Performs), after a snapshot of the entry's streams (bussnap, moved from the snapshot command with a streams filter), says recreated or dropped, and records every act as a hand act through mesh-hand-acts. A drop removes an orphan alone. Claude-Session: https://claude.ai/code/session_01JG73KJNrH5EgFXMKKYSrig
23 lines
518 B
Go
23 lines
518 B
Go
package main
|
|
|
|
import "nats-tools/internal/bussnap"
|
|
|
|
// The snapshot itself is bussnap's, which the keeper takes one entry's with too (design 25 § 12.3).
|
|
type (
|
|
SnapshotOptions = bussnap.SnapshotOptions
|
|
apiError = bussnap.APIError
|
|
streamState = bussnap.StreamState
|
|
)
|
|
|
|
var (
|
|
Snapshot = bussnap.Snapshot
|
|
StreamNames = bussnap.StreamNames
|
|
request = bussnap.Request
|
|
truncate = bussnap.Truncate
|
|
)
|
|
|
|
const (
|
|
apiStreamInfo = bussnap.APIStreamInfo
|
|
apiStreamRestore = bussnap.APIStreamRestore
|
|
)
|