MCPcopy
hub / github.com/nats-io/nats.go / StreamPurgeRequest

Struct StreamPurgeRequest

jsm.go:1461–1468  ·  view source on GitHub ↗

StreamPurgeRequest is optional request information to the purge API.

Source from the content-addressed store, hash-verified

1459
1460// StreamPurgeRequest is optional request information to the purge API.
1461type StreamPurgeRequest struct {
1462 // Purge up to but not including sequence.
1463 Sequence uint64 `json:"seq,omitempty"`
1464 // Subject to match against messages for the purge command.
1465 Subject string `json:"filter,omitempty"`
1466 // Number of messages to keep.
1467 Keep uint64 `json:"keep,omitempty"`
1468}
1469
1470type streamPurgeResponse struct {
1471 apiResponse

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected