本文整理汇总了Golang中google/golang.org/grpc.ServerStream.RecvMsg方法的典型用法代码示例。如果您正苦于以下问题:Golang ServerStream.RecvMsg方法的具体用法?Golang ServerStream.RecvMsg怎么用?Golang ServerStream.RecvMsg使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类google/golang.org/grpc.ServerStream
的用法示例。
在下文中一共展示了ServerStream.RecvMsg方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: _Vtctl_ExecuteVtctlCommand_Handler
func _Vtctl_ExecuteVtctlCommand_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(vtctldata.ExecuteVtctlCommandRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(VtctlServer).ExecuteVtctlCommand(m, &vtctlExecuteVtctlCommandServer{stream})
}
示例2: _RouteGuide_ListFeatures_Handler
func _RouteGuide_ListFeatures_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(Rectangle)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(RouteGuideServer).ListFeatures(m, &routeGuideListFeaturesServer{stream})
}
示例3: _Doppler_Firehose_Handler
func _Doppler_Firehose_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(FirehoseRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(DopplerServer).Firehose(m, &dopplerFirehoseServer{stream})
}
示例4: _TestService_StreamingOutputCall_Handler
func _TestService_StreamingOutputCall_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(StreamingOutputCallRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(TestServiceServer).StreamingOutputCall(m, &testServiceStreamingOutputCallServer{stream})
}
示例5: _ByteStream_Read_Handler
func _ByteStream_Read_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(ReadRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(ByteStreamServer).Read(m, &byteStreamReadServer{stream})
}
示例6: _ShardedGraphStore_Shard_Handler
func _ShardedGraphStore_Shard_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(ShardRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(ShardedGraphStoreServer).Shard(m, &shardedGraphStoreShardServer{stream})
}
示例7: _API_GetBlock_Handler
func _API_GetBlock_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(GetBlockRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(APIServer).GetBlock(m, &aPIGetBlockServer{stream})
}
示例8: _LongTests_RandomStrings_Handler
func _LongTests_RandomStrings_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(RandomStringsRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(LongTestsServer).RandomStrings(m, &longTestsRandomStringsServer{stream})
}
示例9: _CompilationAnalyzer_Analyze_Handler
func _CompilationAnalyzer_Analyze_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(AnalysisRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(CompilationAnalyzerServer).Analyze(m, &compilationAnalyzerAnalyzeServer{stream})
}
示例10: _TestService_List_Handler
func _TestService_List_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(ListOptions)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(TestServiceServer).List(m, &testServiceListServer{stream})
}
示例11: _ABitOfEverythingService_List_Handler
func _ABitOfEverythingService_List_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(EmptyMessage)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(ABitOfEverythingServiceServer).List(m, &aBitOfEverythingServiceListServer{stream})
}
示例12: _RPC_WatchMessage_Handler
func _RPC_WatchMessage_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(Send)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(RPCServer).WatchMessage(m, &rPCWatchMessageServer{stream})
}
示例13: _TestService_PingList_Handler
func _TestService_PingList_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(PingRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(TestServiceServer).PingList(m, &testServicePingListServer{stream})
}
示例14: _ReplicationTransport_Query_Handler
func _ReplicationTransport_Query_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(QueryRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(ReplicationTransportServer).Query(m, &replicationTransportQueryServer{stream})
}
示例15: _Cistern_DumpBinlog_Handler
func _Cistern_DumpBinlog_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(DumpBinlogReq)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(CisternServer).DumpBinlog(m, &cisternDumpBinlogServer{stream})
}