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

Struct WshRouter

pkg/wshutil/wshrouter.go:89–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89type WshRouter struct {
90 lock *sync.Mutex
91 isRootRouter bool
92 nextLinkId baseds.LinkId
93 upstreamLinkId baseds.LinkId
94 inputCh chan baseds.RpcInputChType
95 rpcMap map[string]rpcRoutingInfo // rpcid => routeinfo
96 routeMap map[string]baseds.LinkId // routeid => linkid
97 linkMap map[baseds.LinkId]*linkMeta
98
99 upstreamBufLock sync.Mutex
100 upstreamBufCond *sync.Cond
101 upstreamBuf []messageWrap
102 upstreamLoopStarted bool
103
104 linkBacklogCond *sync.Cond
105 linkMsgBacklog map[baseds.LinkId][]backlogMessageWrap
106 backlogHighWaterMark map[baseds.LinkId]int
107
108 controlRpc *WshRpc
109}
110
111func MakeConnectionRouteId(connId string) string {
112 return "conn:" + connId

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected