| 48 | } |
| 49 | |
| 50 | type 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 | |
| 66 | type wshRpcContextKey struct{} |
| 67 | type wshRpcRespHandlerContextKey struct{} |
nothing calls this directly
no outgoing calls
no test coverage detected