feat: validate Worker protocol and verify process crash recovery
This commit is contained in:
9
protocol/workerv1/schema.go
Normal file
9
protocol/workerv1/schema.go
Normal file
@@ -0,0 +1,9 @@
|
||||
// Package workerv1 提供 Worker v1 的机器可读契约,运行时仍由类型校验和持久化状态机执行约束。
|
||||
package workerv1
|
||||
|
||||
import _ "embed"
|
||||
|
||||
// Schema 是 Draft 2020-12 的协议文档;clientFrame 与 serverFrame 分别限定通信方向。
|
||||
//
|
||||
//go:embed worker.schema.json
|
||||
var Schema string
|
||||
Reference in New Issue
Block a user