(resId string)
| 447 | } |
| 448 | |
| 449 | func (w *WshRpc) getResponseCh(resId string) (chan *RpcMessage, *rpcData) { |
| 450 | if resId == "" { |
| 451 | return nil, nil |
| 452 | } |
| 453 | w.Lock.Lock() |
| 454 | defer w.Lock.Unlock() |
| 455 | rd := w.RpcMap[resId] |
| 456 | if rd == nil { |
| 457 | return nil, nil |
| 458 | } |
| 459 | return rd.ResCh, rd |
| 460 | } |
| 461 | |
| 462 | func (w *WshRpc) SetServerImpl(serverImpl ServerImpl) { |
| 463 | validateServerImpl(serverImpl) |
no outgoing calls
no test coverage detected