MCPcopy Create free account
hub / github.com/bytemode/pitaya-notes / NewRemote

Function NewRemote

agent/agent_remote.go:58–89  ·  view source on GitHub ↗

NewRemote create new Remote instance

(
	sess *protos.Session, //session 即远程调用的时候通过rpc发送过来的本地服务器中的session
	reply string,
	rpcClient cluster.RPCClient,
	encoder codec.PacketEncoder,
	serializer serialize.Serializer,
	serviceDiscovery cluster.ServiceDiscovery,
	frontendID string,
	messageEncoder message.Encoder,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 9

handleRPCSysMethod · 0.92
TestNewRemoteFunction · 0.85
TestAgentRemoteCloseFunction · 0.85
TestAgentRemotePushFunction · 0.85
TestKickRemoteFunction · 0.85

Calls 6

NewFunction · 0.92
SetFrontendDataMethod · 0.80
SetDataEncodedMethod · 0.80
GetUidMethod · 0.45
GetIdMethod · 0.45
GetDataMethod · 0.45

Tested by 8

TestNewRemoteFunction · 0.68
TestAgentRemoteCloseFunction · 0.68
TestAgentRemotePushFunction · 0.68
TestKickRemoteFunction · 0.68