File tree Expand file tree Collapse file tree 5 files changed +20
-20
lines changed
error-details/Sources/Generated
hello-world/Sources/Generated
reflection-server/Sources/Generated
route-guide/Sources/Generated Expand file tree Collapse file tree 5 files changed +20
-20
lines changed Original file line number Diff line number Diff line change @@ -347,7 +347,7 @@ extension Echo_Echo {
347
347
348
348
// Default implementation of 'registerMethods(with:)'.
349
349
extension Echo_Echo . StreamingServiceProtocol {
350
- internal func registerMethods( with router: inout GRPCCore . RPCRouter ) {
350
+ internal func registerMethods< Transport > ( with router: inout GRPCCore . RPCRouter < Transport > ) where Transport : GRPCCore . ServerTransport {
351
351
router. registerHandler (
352
352
forMethod: Echo_Echo . Method. Get. descriptor,
353
353
deserializer: GRPCProtobuf . ProtobufDeserializer < Echo_EchoRequest > ( ) ,
@@ -600,14 +600,14 @@ extension Echo_Echo {
600
600
/// The ``Client`` provides an implementation of ``ClientProtocol`` which wraps
601
601
/// a `GRPCCore.GRPCCClient`. The underlying `GRPCClient` provides the long-lived
602
602
/// means of communication with the remote peer.
603
- internal struct Client : ClientProtocol {
604
- private let client : GRPCCore . GRPCClient
603
+ internal struct Client < Transport > : ClientProtocol where Transport : GRPCCore . ClientTransport {
604
+ private let client : GRPCCore . GRPCClient < Transport >
605
605
606
606
/// Creates a new client wrapping the provided `GRPCCore.GRPCClient`.
607
607
///
608
608
/// - Parameters:
609
609
/// - client: A `GRPCCore.GRPCClient` providing a communication channel to the service.
610
- internal init ( wrapping client: GRPCCore . GRPCClient ) {
610
+ internal init ( wrapping client: GRPCCore . GRPCClient < Transport > ) {
611
611
self . client = client
612
612
}
613
613
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ extension Helloworld_Greeter {
156
156
157
157
// Default implementation of 'registerMethods(with:)'.
158
158
extension Helloworld_Greeter . StreamingServiceProtocol {
159
- internal func registerMethods( with router: inout GRPCCore . RPCRouter ) {
159
+ internal func registerMethods< Transport > ( with router: inout GRPCCore . RPCRouter < Transport > ) where Transport : GRPCCore . ServerTransport {
160
160
router. registerHandler (
161
161
forMethod: Helloworld_Greeter . Method. SayHello. descriptor,
162
162
deserializer: GRPCProtobuf . ProtobufDeserializer < Helloworld_HelloRequest > ( ) ,
@@ -246,14 +246,14 @@ extension Helloworld_Greeter {
246
246
/// > Source IDL Documentation:
247
247
/// >
248
248
/// > The greeting service definition.
249
- internal struct Client : ClientProtocol {
250
- private let client : GRPCCore . GRPCClient
249
+ internal struct Client < Transport > : ClientProtocol where Transport : GRPCCore . ClientTransport {
250
+ private let client : GRPCCore . GRPCClient < Transport >
251
251
252
252
/// Creates a new client wrapping the provided `GRPCCore.GRPCClient`.
253
253
///
254
254
/// - Parameters:
255
255
/// - client: A `GRPCCore.GRPCClient` providing a communication channel to the service.
256
- internal init ( wrapping client: GRPCCore . GRPCClient ) {
256
+ internal init ( wrapping client: GRPCCore . GRPCClient < Transport > ) {
257
257
self . client = client
258
258
}
259
259
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ extension Helloworld_Greeter {
156
156
157
157
// Default implementation of 'registerMethods(with:)'.
158
158
extension Helloworld_Greeter . StreamingServiceProtocol {
159
- internal func registerMethods( with router: inout GRPCCore . RPCRouter ) {
159
+ internal func registerMethods< Transport > ( with router: inout GRPCCore . RPCRouter < Transport > ) where Transport : GRPCCore . ServerTransport {
160
160
router. registerHandler (
161
161
forMethod: Helloworld_Greeter . Method. SayHello. descriptor,
162
162
deserializer: GRPCProtobuf . ProtobufDeserializer < Helloworld_HelloRequest > ( ) ,
@@ -246,14 +246,14 @@ extension Helloworld_Greeter {
246
246
/// > Source IDL Documentation:
247
247
/// >
248
248
/// > The greeting service definition.
249
- internal struct Client : ClientProtocol {
250
- private let client : GRPCCore . GRPCClient
249
+ internal struct Client < Transport > : ClientProtocol where Transport : GRPCCore . ClientTransport {
250
+ private let client : GRPCCore . GRPCClient < Transport >
251
251
252
252
/// Creates a new client wrapping the provided `GRPCCore.GRPCClient`.
253
253
///
254
254
/// - Parameters:
255
255
/// - client: A `GRPCCore.GRPCClient` providing a communication channel to the service.
256
- internal init ( wrapping client: GRPCCore . GRPCClient ) {
256
+ internal init ( wrapping client: GRPCCore . GRPCClient < Transport > ) {
257
257
self . client = client
258
258
}
259
259
Original file line number Diff line number Diff line change @@ -347,7 +347,7 @@ extension Echo_Echo {
347
347
348
348
// Default implementation of 'registerMethods(with:)'.
349
349
extension Echo_Echo . StreamingServiceProtocol {
350
- internal func registerMethods( with router: inout GRPCCore . RPCRouter ) {
350
+ internal func registerMethods< Transport > ( with router: inout GRPCCore . RPCRouter < Transport > ) where Transport : GRPCCore . ServerTransport {
351
351
router. registerHandler (
352
352
forMethod: Echo_Echo . Method. Get. descriptor,
353
353
deserializer: GRPCProtobuf . ProtobufDeserializer < Echo_EchoRequest > ( ) ,
@@ -600,14 +600,14 @@ extension Echo_Echo {
600
600
/// The ``Client`` provides an implementation of ``ClientProtocol`` which wraps
601
601
/// a `GRPCCore.GRPCCClient`. The underlying `GRPCClient` provides the long-lived
602
602
/// means of communication with the remote peer.
603
- internal struct Client : ClientProtocol {
604
- private let client : GRPCCore . GRPCClient
603
+ internal struct Client < Transport > : ClientProtocol where Transport : GRPCCore . ClientTransport {
604
+ private let client : GRPCCore . GRPCClient < Transport >
605
605
606
606
/// Creates a new client wrapping the provided `GRPCCore.GRPCClient`.
607
607
///
608
608
/// - Parameters:
609
609
/// - client: A `GRPCCore.GRPCClient` providing a communication channel to the service.
610
- internal init ( wrapping client: GRPCCore . GRPCClient ) {
610
+ internal init ( wrapping client: GRPCCore . GRPCClient < Transport > ) {
611
611
self . client = client
612
612
}
613
613
Original file line number Diff line number Diff line change @@ -407,7 +407,7 @@ extension Routeguide_RouteGuide {
407
407
408
408
// Default implementation of 'registerMethods(with:)'.
409
409
extension Routeguide_RouteGuide . StreamingServiceProtocol {
410
- internal func registerMethods( with router: inout GRPCCore . RPCRouter ) {
410
+ internal func registerMethods< Transport > ( with router: inout GRPCCore . RPCRouter < Transport > ) where Transport : GRPCCore . ServerTransport {
411
411
router. registerHandler (
412
412
forMethod: Routeguide_RouteGuide . Method. GetFeature. descriptor,
413
413
deserializer: GRPCProtobuf . ProtobufDeserializer < Routeguide_Point > ( ) ,
@@ -684,14 +684,14 @@ extension Routeguide_RouteGuide {
684
684
/// > Source IDL Documentation:
685
685
/// >
686
686
/// > Interface exported by the server.
687
- internal struct Client : ClientProtocol {
688
- private let client : GRPCCore . GRPCClient
687
+ internal struct Client < Transport > : ClientProtocol where Transport : GRPCCore . ClientTransport {
688
+ private let client : GRPCCore . GRPCClient < Transport >
689
689
690
690
/// Creates a new client wrapping the provided `GRPCCore.GRPCClient`.
691
691
///
692
692
/// - Parameters:
693
693
/// - client: A `GRPCCore.GRPCClient` providing a communication channel to the service.
694
- internal init ( wrapping client: GRPCCore . GRPCClient ) {
694
+ internal init ( wrapping client: GRPCCore . GRPCClient < Transport > ) {
695
695
self . client = client
696
696
}
697
697
You can’t perform that action at this time.
0 commit comments