core/

directory
v2.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2026 License: Apache-2.0

Directories

Path Synopsis
Package debug 注册 debug 控制台主页与全局鉴权中间件。
Package debug 注册 debug 控制台主页与全局鉴权中间件。
bootstrap
Package bootstrap registers built-in debug routes on the global debug App.
Package bootstrap registers built-in debug routes on the global debug App.
featurehttp
Package featurehttp 提供 feature flags 的 HTTP 调试接口
Package featurehttp 提供 feature flags 的 HTTP 调试接口
ui
Package discovery 提供服务发现的抽象接口,供 gRPC resolver 等客户端组件使用。
Package discovery 提供服务发现的抽象接口,供 gRPC resolver 等客户端组件使用。
Package encoding 提供编解码器(Codec)的全局注册表, 用于按名称(如 "json"、"proto")或 HTTP Content-Type 选择对应的序列化实现。
Package encoding 提供编解码器(Codec)的全局注册表, 用于按名称(如 "json"、"proto")或 HTTP Content-Type 选择对应的序列化实现。
Package flags 提供 CLI 命令行参数(flag)的全局聚合注册表。
Package flags 提供 CLI 命令行参数(flag)的全局聚合注册表。
Package healthy 提供健康检查处理器(Handler)的全局注册表。
Package healthy 提供健康检查处理器(Handler)的全局注册表。
Package lavabuilder 是 lava 应用的 DI 装配与 CLI 启动入口。
Package lavabuilder 是 lava 应用的 DI 装配与 CLI 启动入口。
Package leaderelection 预留的分布式选主模块(尚未实现)。
Package leaderelection 预留的分布式选主模块(尚未实现)。
Package lifecycle 定义服务生命周期钩子的抽象。
Package lifecycle 定义服务生命周期钩子的抽象。
Package logging 提供日志工厂注册表与配置结构。
Package logging 提供日志工厂注册表与配置结构。
Package metrics 提供基于 uber-go/tally 的指标抽象与 Prometheus 驱动。
Package metrics 提供基于 uber-go/tally 的指标抽象与 Prometheus 驱动。
p2p
Package p2p 提供基于 ICE/STUN/TURN 的点对点连接能力。
Package p2p 提供基于 ICE/STUN/TURN 的点对点连接能力。
example command
P2P 示例:本地内存信令 / tunnel gateway 全链路 / dev coturn 验证。
P2P 示例:本地内存信令 / tunnel gateway 全链路 / dev coturn 验证。
ice
p2pbuilder
Package p2pbuilder 装配 P2P Coordinator:tunnel agent 信令、lifecycle 与 debug 端点。
Package p2pbuilder 装配 P2P Coordinator:tunnel agent 信令、lifecycle 与 debug 端点。
signaling/tunnelsig
Package tunnelsig 通过 tunnel gateway 控制流交换 ICE 信令。
Package tunnelsig 通过 tunnel gateway 控制流交换 ICE 信令。
turncred
Package turncred 生成 coturn TURN REST API 临时凭证(HMAC-SHA1)。
Package turncred 生成 coturn TURN REST API 临时凭证(HMAC-SHA1)。
Package pidfile 管理进程 PID 文件的读写,用于进程存活检测与单实例守护。
Package pidfile 管理进程 PID 文件的读写,用于进程存活检测与单实例守护。
pidfilebuilder
Package pidfilebuilder 提供 lifecycle 钩子,在服务启动后写入 PID 文件、停止后删除。
Package pidfilebuilder 提供 lifecycle 钩子,在服务启动后写入 PID 文件、停止后删除。
Package registry 提供服务注册与撤销的抽象接口及 lifecycle 集成。
Package registry 提供服务注册与撤销的抽象接口及 lifecycle 集成。
drivers/mdns
Package mdns is a multicast dns registry
Package mdns is a multicast dns registry
Package rpcmeta 定义描述单个 RPC 方法的元信息结构。
Package rpcmeta 定义描述单个 RPC 方法的元信息结构。
Package running 提供进程级运行态信息与全局 CLI flag 定义。
Package running 提供进程级运行态信息与全局 CLI flag 定义。
Package service 定义服务注册/发现领域模型(Service、Node、Instance 等)。
Package service 定义服务注册/发现领域模型(Service、Node、Instance 等)。
Package signals 将操作系统的关停信号转换为 context 取消,用于服务优雅退出。
Package signals 将操作系统的关停信号转换为 context 取消,用于服务优雅退出。
bootstrap
Package bootstrap provides shared supervisor wiring for CLI commands.
Package bootstrap provides shared supervisor wiring for CLI commands.
debug
Package debug 注册 Supervisor 的 debug UI 与 REST 控制 API。
Package debug 注册 Supervisor 的 debug UI 与 REST 控制 API。
环境变量加载:与 CLI(cmds/tunnelcmd)使用同一套 TUNNEL_* 命名。
环境变量加载:与 CLI(cmds/tunnelcmd)使用同一套 TUNNEL_* 命名。
example command
Package main provides a simple example of using the tunnel package.
Package main provides a simple example of using the tunnel package.
example/auth command
Demo: 代理鉴权 —— 配置 TUNNEL_AUTH_TOKEN 后,HTTP 代理要求客户端携带 token。
Demo: 代理鉴权 —— 配置 TUNNEL_AUTH_TOKEN 后,HTTP 代理要求客户端携带 token。
example/grpc command
Demo: gRPC over tunnel —— 经网关 gRPC 代理调用后端 gRPC 服务。
Demo: gRPC over tunnel —— 经网关 gRPC 代理调用后端 gRPC 服务。
example/quickstart command
Demo: 最简上手 —— Standalone Agent + HTTP 代理(单进程跑通)。
Demo: 最简上手 —— Standalone Agent + HTTP 代理(单进程跑通)。
example/tls command
Demo: TLS 传输 —— Agent ↔ Gateway 之间启用 TLS(yamux over TLS)。
Demo: TLS 传输 —— Agent ↔ Gateway 之间启用 TLS(yamux over TLS)。
kcp
ratelimit
Package ratelimit 提供令牌桶速率限制,供 gateway 代理与 P2P 信令复用。
Package ratelimit 提供令牌桶速率限制,供 gateway 代理与 P2P 信令复用。
testhelper
Package testhelper provides polling helpers for tunnel integration tests.
Package testhelper provides polling helpers for tunnel integration tests.
tunnelagent
Package tunnelagent 提供隧道代理客户端实现
Package tunnelagent 提供隧道代理客户端实现
tunneldebug
Package tunneldebug 提供 Tunnel Gateway 的 Web 管理界面
Package tunneldebug 提供 Tunnel Gateway 的 Web 管理界面

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL