MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / APIDispatcher

Struct APIDispatcher

internal/nodeagent/dispatch.go:29–34  ·  view source on GitHub ↗

APIDispatcher 把 method/body 路由到 nodeapi 内部 do* 方法。

Source from the content-addressed store, hash-verified

27
28// APIDispatcher 把 method/body 路由到 nodeapi 内部 do* 方法。
29type APIDispatcher struct {
30 api *nodeapi.API
31 ipsentinel IPSentinelHandler
32
33 sender Sender // 由 session 在建立连接后通过 SetSender 注入;流式 method 需要它。
34}
35
36// NewAPIDispatcher 构造一个 dispatcher。ipsentinel 可为 nil,
37// 此时所有 IPSentinel* method 会返回错误。

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected