(serverImpl ServerImpl)
| 460 | } |
| 461 | |
| 462 | func (w *WshRpc) SetServerImpl(serverImpl ServerImpl) { |
| 463 | validateServerImpl(serverImpl) |
| 464 | w.Lock.Lock() |
| 465 | defer w.Lock.Unlock() |
| 466 | w.ServerImpl = serverImpl |
| 467 | } |
| 468 | |
| 469 | func (w *WshRpc) registerRpc(handler *RpcRequestHandler, command string, route string, reqId string) chan *RpcMessage { |
| 470 | w.Lock.Lock() |
nothing calls this directly
no test coverage detected