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

Method GetLinkIdForRoute

pkg/wshutil/wshrouter.go:627–633  ·  view source on GitHub ↗
(routeId string)

Source from the content-addressed store, hash-verified

625}
626
627func (router *WshRouter) GetLinkIdForRoute(routeId string) baseds.LinkId {
628 lm := router.getLinkForRoute(routeId)
629 if lm == nil {
630 return baseds.NoLinkId
631 }
632 return lm.linkId
633}
634
635// only for leaves
636func (router *WshRouter) RegisterTrustedLeaf(rpc AbstractRpcClient, routeId string) (baseds.LinkId, error) {

Callers 1

SetPeerInfoCommandMethod · 0.80

Calls 1

getLinkForRouteMethod · 0.95

Tested by

no test coverage detected