containerd/typeurl
GitHub: containerd/typeurl
typeurl 是 containerd 维护的 Go 库,用于管理任意 Go 类型到 protobuf Any 的注册、序列化与反序列化,简化跨 gRPC/ttrpc 的多态消息传递。
Stars: 55 | Forks: 21
# typeurl
[](https://pkg.go.dev/github.com/containerd/typeurl)
[](https://github.com/containerd/typeurl/actions?query=workflow%3ACI)
[](https://codecov.io/gh/containerd/typeurl)
[](https://goreportcard.com/report/github.com/containerd/typeurl)
一个用于管理已编码类型的注册、marshaling 和 unmarshaling 的 Go 包。
当类型通过 ttrpc/GRPC API 发送并被 marshaled 为 protobuf [Any](https://pkg.go.dev/google.golang.org/protobuf@v1.27.1/types/known/anypb#Any) 时,此包会非常有用。
## 项目详情
**typeurl** 是一个 containerd 子项目,采用 [Apache 2.0 license](./LICENSE) 授权。
作为 containerd 子项目,您可以在我们的 [`containerd/project`](https://github.com/containerd/project) 仓库中找到以下信息:
* [项目治理](https://github.com/containerd/project/blob/main/GOVERNANCE.md),
* [维护者](https://github.com/containerd/project/blob/main/MAINTAINERS),
* 和[贡献指南](https://github.com/containerd/project/blob/main/CONTRIBUTING.md)
## Gogo Protobuf 支持弃用
对 gogoprotobuf 的支持在 v2.3.0 中已被移除。上游包自 2022 年起已被弃用,
typeurl 的用户不应再依赖 Gogo Protobuf 支持。仍在过渡阶段的用户可以
继续使用 v2.2 版本,直到过渡完成。自 v2.2.1 起,可以使用 `!no_gogo` 构建标签
显式移除 gogo proto 支持。
标签:containerd, EVTX分析, Go, gRPC, Protobuf, Python工具, Ruby工具, 序列化, 开发库, 日志审计