MCPcopy
hub / github.com/grpc/grpc-go / RunServer

Method RunServer

interop/grpc_testing/worker_service_grpc.pb.go:77–85  ·  view source on GitHub ↗
(ctx context.Context, opts ...grpc.CallOption)

Source from the content-addressed store, hash-verified

75}
76
77func (c *workerServiceClient) RunServer(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[ServerArgs, ServerStatus], error) {
78 cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
79 stream, err := c.cc.NewStream(ctx, &WorkerService_ServiceDesc.Streams[0], WorkerService_RunServer_FullMethodName, cOpts...)
80 if err != nil {
81 return nil, err
82 }
83 x := &grpc.GenericClientStream[ServerArgs, ServerStatus]{ClientStream: stream}
84 return x, nil
85}
86
87// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
88type WorkerService_RunServerClient = grpc.BidiStreamingClient[ServerArgs, ServerStatus]

Callers

nothing calls this directly

Calls 2

StaticMethodFunction · 0.92
NewStreamMethod · 0.65

Tested by

no test coverage detected