Event kinds. Every streamed line carries exactly one Kind.
const (
KindStart = "start"// first line: operation accepted and beginningKindProgress = "progress"// emitted as work advances (single-line update)KindStepStart = "step_start"// a named unit of work began (no newline yet)KindStepEnd = "step_end"// that unit finished (completes the line)KindResult = "result"// final line: terminal outcome)
ContentType is the media type for a newline-delimited JSON admin event stream. The client sets it in the Accept header to opt into streaming; the server sets it on the response when it streams.
constContentType = "application/x-ndjson"
type Event
Event is one line of an admin operation stream. Each line is a self-contained JSON object; consumers switch on Kind. Counters carry incremental progress; Fields carries operation-specific detail (a final summary, per-backend rows) without growing the schema per operation.