package libraryrelease import "encoding/json" // IndexWrite freezes the exact index/ID, original bytes and CAS generation. // After=nil is an explicit removal, never a scope-wide delete-by-query. type IndexWrite struct { Index string `json:"index"` ID string `json:"id"` Before json.RawMessage `json:"before,omitempty"` SeqNo *int64 `json:"seq_no,omitempty"` PrimaryTerm *int64 `json:"primary_term,omitempty"` After json.RawMessage `json:"after,omitempty"` }