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

Function validateServerImpl

pkg/wshutil/wshrpc.go:204–212  ·  view source on GitHub ↗
(serverImpl ServerImpl)

Source from the content-addressed store, hash-verified

202}
203
204func validateServerImpl(serverImpl ServerImpl) {
205 if serverImpl == nil {
206 return
207 }
208 serverType := reflect.TypeOf(serverImpl)
209 if serverType.Kind() != reflect.Pointer && serverType.Elem().Kind() != reflect.Struct {
210 panic(fmt.Sprintf("serverImpl must be a pointer to struct, got %v", serverType))
211 }
212}
213
214// closes outputCh when inputCh is closed/done
215func MakeWshRpcWithChannels(inputCh chan baseds.RpcInputChType, outputCh chan []byte, rpcCtx wshrpc.RpcContext, serverImpl ServerImpl, debugName string) *WshRpc {

Callers 2

MakeWshRpcWithChannelsFunction · 0.85
SetServerImplMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected