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

Method Route

router/router.go:78–110  ·  view source on GitHub ↗

Route gets the right server to use in the call

(
	ctx context.Context, //上下文
	rpcType protos.RPCType, //rpc的类型sys user
	svType string, //服务器类型
	route *route.Route, //路由表
	msg *message.Message, //Message
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

remoteCallMethod · 0.80
TestRouteFunction · 0.80

Calls 3

defaultRouteMethod · 0.95
DebugfMethod · 0.80
GetServersByTypeMethod · 0.65

Tested by 1

TestRouteFunction · 0.64