Files
EntitleForge-SDK-go/sdk/doc.go
T
iceking2nd 81c7295893
sdk-ci / test (push) Failing after 8s
feat: 益铸 EntitleForge SDK 独立仓库首个版本
- 自主仓 git.wxccs.org/EntitleForge/EntitleForge 拆分(协议实现单一归属:
  license/crypto/ulid 随 SDK 迁出,服务端反向依赖本仓)
- sdk:Client 三模式(文件/远程/代理)、GRACE 状态机、查询 API(6.6ns/0 alloc)
- license:三段式编解码与严格解析;crypto:Ed25519 信任链 + Proxy 受约束证书
- 零第三方依赖(CI 有依赖闭包断言红线);go.mod 零 require
- CI:Gitea Actions(test + 零依赖断言 + 三平台交叉编译冒烟)
2026-11-09 15:42:22 +08:00

13 lines
743 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// Package sdk 是嵌入客户端的益铸(EntitleForge)Go SDK(准公共 API)。
//
// 设计依据:docs/design/07-sdk.md。零第三方依赖(仅标准库 + internal 共享实现),
// 集成三行起步、验证失败走状态机而非 panic、查询走 atomic 快照永不阻塞。
//
// 文件模式:WithLicenseFile + WithTrustChain → Start(mtime 轮询热更新)。
// 远程模式:WithRemoteServer + WithLicenseKey → Start 自动激活 + 心跳循环,
// 断连进入 GRACE(宽限期内查询正常),耗尽转 EXPIRED;terminate 转 REVOKED 终态。
//
// 核心验证逻辑由 internal/license 与 internal/crypto 提供(服务端与 SDK 共享
// 同一份实现,禁止两套)。
package sdk