Files
knowledge-governance/internal/libraryrelease/index_plan.go
T
姚章浩 8d838d9cb4
build / build (push) Successful in 1m45s
feat(library): 整库发布身份、写集合与收尾边界
执行时真实时钟与持久授权回读(撤销/过期即停并保留预备份)、写集合写前落盘、
租约与 attempt 身份、恢复队列与原发送身份分离、成功收尾必须释放维护后再登记终态。
2026-11-01 11:35:10 +08:00

15 lines
535 B
Go

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"`
}