本文整理汇总了Golang中google/golang.org/grpc.ServerStream.RecvProto方法的典型用法代码示例。如果您正苦于以下问题:Golang ServerStream.RecvProto方法的具体用法?Golang ServerStream.RecvProto怎么用?Golang ServerStream.RecvProto使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类google/golang.org/grpc.ServerStream
的用法示例。
在下文中一共展示了ServerStream.RecvProto方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: _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})
}
示例2: _GraphStore_Scan_Handler
func _GraphStore_Scan_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(ScanRequest)
if err := stream.RecvProto(m); err != nil {
return err
}
return srv.(GraphStoreServer).Scan(m, &graphStoreScanServer{stream})
}
示例3: _RouteGuide_ListFeatures_Handler
func _RouteGuide_ListFeatures_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(Rectangle)
if err := stream.RecvProto(m); err != nil {
return err
}
return srv.(RouteGuideServer).ListFeatures(m, &routeGuideListFeaturesServer{stream})
}
示例4: _TestService_StreamingOutputCall_Handler
func _TestService_StreamingOutputCall_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(StreamingOutputCallRequest)
if err := stream.RecvProto(m); err != nil {
return err
}
return srv.(TestServiceServer).StreamingOutputCall(m, &testServiceStreamingOutputCallServer{stream})
}
示例5: _CompilationAnalyzer_Analyze_Handler
func _CompilationAnalyzer_Analyze_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(AnalysisRequest)
if err := stream.RecvProto(m); err != nil {
return err
}
return srv.(CompilationAnalyzerServer).Analyze(m, &compilationAnalyzerAnalyzeServer{stream})
}