本文整理汇总了Golang中google/golang.org/grpc.ServerStream类的典型用法代码示例。如果您正苦于以下问题:Golang ServerStream类的具体用法?Golang ServerStream怎么用?Golang ServerStream使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ServerStream类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: _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})
}
示例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.RecvProto(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: _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})
}
示例9: _FileDataService_Get_Handler
func _FileDataService_Get_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(FilesRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(FileDataServiceServer).Get(m, &fileDataServiceGetServer{stream})
}
示例10: _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})
}
示例11: _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})
}
示例12: _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})
}
示例13: _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})
}
示例14: _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})
}
示例15: _GraphStore_Read_Handler
func _GraphStore_Read_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(ReadRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(GraphStoreServer).Read(m, &graphStoreReadServer{stream})
}