MCPcopy
hub / github.com/TarsCloud/TarsGo / SetNodeInfo

Method SetNodeInfo

tars/nodef.go:17–30  ·  view source on GitHub ↗

SetNodeInfo sets node information with communicator, node name, app name, server and container name

(comm *Communicator, node string, app string, server string, container string)

Source from the content-addressed store, hash-verified

15
16// SetNodeInfo sets node information with communicator, node name, app name, server and container name
17func (n *NodeFHelper) SetNodeInfo(comm *Communicator, node string, app string, server string, container string) {
18 if node == "" {
19 return
20 }
21 n.comm = comm
22 n.sf = new(nodef.ServerF)
23 comm.StringToProxy(node, n.sf)
24 n.si = nodef.ServerInfo{
25 Application: app,
26 ServerName: server,
27 Pid: int32(os.Getpid()),
28 Adapter: "",
29 }
30}
31
32// KeepAlive sends the keepalive package to the node.
33func (n *NodeFHelper) KeepAlive(adapter string) {

Callers 1

mainLoopMethod · 0.80

Calls 1

StringToProxyMethod · 0.80

Tested by

no test coverage detected