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

Method Dial

internal/serverapi/api.go:821–823  ·  view source on GitHub ↗

Dial 根据节点 ID 返回 RPC 客户端,可用于 jobs.NodeDialer。

(nodeID string)

Source from the content-addressed store, hash-verified

819
820// Dial 根据节点 ID 返回 RPC 客户端,可用于 jobs.NodeDialer。
821func (a *API) Dial(nodeID string) (*nodes.Client, error) {
822 return a.clientFor(nodeID)
823}
824
825func decodeConfigRequest(w http.ResponseWriter, r *http.Request) (configRequest, bool) {
826 var req configRequest

Calls 1

clientForMethod · 0.95