MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / RegisterTrustedRouter

Method RegisterTrustedRouter

pkg/wshutil/wshrouter.go:647–651  ·  view source on GitHub ↗

only for routers

(rpc AbstractRpcClient)

Source from the content-addressed store, hash-verified

645
646// only for routers
647func (router *WshRouter) RegisterTrustedRouter(rpc AbstractRpcClient) baseds.LinkId {
648 linkId := router.RegisterUntrustedLink(rpc)
649 router.trustLink(linkId, LinkKind_Router)
650 return linkId
651}
652
653func (router *WshRouter) RegisterUpstream(rpc AbstractRpcClient) baseds.LinkId {
654 if router.IsRootRouter() {

Callers 2

HandleStdIOClientFunction · 0.80
registerConnFunction · 0.80

Calls 2

RegisterUntrustedLinkMethod · 0.95
trustLinkMethod · 0.95

Tested by

no test coverage detected