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

Struct hubCallerAdapter

internal/server/server_selfsync.go:94–96  ·  view source on GitHub ↗

hubCallerAdapter 把 *nodehub.Hub 适配为 jobs.HubCaller。

Source from the content-addressed store, hash-verified

92
93// hubCallerAdapter 把 *nodehub.Hub 适配为 jobs.HubCaller。
94type hubCallerAdapter struct {
95 hub *nodehub.Hub
96}
97
98func (a hubCallerAdapter) Call(ctx context.Context, nodeID, method string, body any) (json.RawMessage, error) {
99 return a.hub.Call(ctx, nodeID, method, body)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected