MCPcopy
hub / github.com/wavetermdev/waveterm / WshRpc

Struct WshRpc

pkg/wshutil/wshrpc.go:50–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50type WshRpc struct {
51 Lock *sync.Mutex
52 InputCh chan baseds.RpcInputChType
53 OutputCh chan []byte
54 CtxDoneCh chan string // for context cancellation, value is ResId
55 RpcContext *atomic.Pointer[wshrpc.RpcContext]
56 RpcMap map[string]*rpcData
57 ServerImpl ServerImpl
58 EventListener *EventListener
59 ResponseHandlerMap map[string]*RpcResponseHandler // reqId => handler
60 StreamBroker *streamclient.Broker
61 Debug bool
62 DebugName string
63 ServerDone bool
64}
65
66type wshRpcContextKey struct{}
67type wshRpcRespHandlerContextKey struct{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected