You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 9, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: docs/installation/c.md
+8-8
Original file line number
Diff line number
Diff line change
@@ -13,21 +13,21 @@ To install gRPC on your system, follow the instructions here:
13
13
14
14
## Hello C++ gRPC!
15
15
16
-
Here's how to build and run the C++ implementation of the [Hello World](https://github.com/grpc/grpc-common/blob/master/protos/helloworld.proto) example used in the [Overview](/docs/index.shtml).
16
+
Here's how to build and run the C++ implementation of the [Hello World](https://github.com/grpc/grpc/blob/master/examples/protos/helloworld.proto) example used in the [Overview](/docs/index.shtml).
17
17
18
-
The example code for this and our other examples lives in the `grpc-common`
19
-
GitHub repository. Clone this repository to your local machine by running the
18
+
The example code for this and our other examples lives in the `examples`
19
+
directory. Clone this repository to your local machine by running the
Copy file name to clipboardExpand all lines: docs/installation/go.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -35,14 +35,14 @@ $ go get -a github.com/golang/protobuf/protoc-gen-go
35
35
- Get the example.
36
36
37
37
```sh
38
-
$ go get -u github.com/grpc/grpc-common/go/greeter_client
39
-
$ go get -u github.com/grpc/grpc-common/go/greeter_server
38
+
$ go get -u github.com/grpc/grpc-go/examples/helloworld/greeter_client
39
+
$ go get -u github.com/grpc/grpc-go/examples/helloworld/greeter_server
40
40
```
41
41
42
42
Try it!
43
43
-------
44
44
45
-
For this sample, we've already generated the server and client stubs from [helloworld.proto](https://github.com/grpc/grpc-common/blob/master/protos/helloworld.proto).
45
+
For this sample, we've already generated the server and client stubs from [helloworld.proto](https://github.com/grpc/grpc-go/blob/master/examples/helloworld/proto/helloworld.proto).
46
46
47
47
- Run the server
48
48
```sh
@@ -60,7 +60,7 @@ OPTIONAL - Rebuilding the generated code
60
60
You must have protoc and the Go protoc plugin installed to do this:
- Download the grpc debian packages from the [latest grpc release](https://github.com/grpc/grpc/releases) and install them.
@@ -33,7 +33,7 @@ Install
33
33
- Install this package's dependencies
34
34
35
35
```sh
36
-
$ cdgrpc-common/node
36
+
$ cdexamples/node
37
37
$ npm install
38
38
```
39
39
@@ -57,7 +57,7 @@ Try it!
57
57
Note
58
58
----
59
59
60
-
The <ahref="https://github.com/grpc/grpc-common/tree/master/node">grpc-common/node</a> directory has its own copy of `helloworld.proto` because it currently depends on
60
+
The <ahref="https://github.com/grpc/grpc/tree/master/examples/node">examples/node</a> directory has its own copy of `helloworld.proto` because it currently depends on
61
61
some Protocol Buffer 2.0 syntax that is deprecated in Protocol Buffer 3.0.
Copy file name to clipboardExpand all lines: docs/installation/objective-c.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -13,21 +13,21 @@ To run this example you should have [Cocoapods](https://cocoapods.org/#install)
13
13
14
14
## Hello Objective-C gRPC!
15
15
16
-
Here's how to build and run the Objective-C implementation of the [Hello World](https://github.com/grpc/grpc-common/blob/master/protos/helloworld.proto) example used in the [Overview](/docs/index.html).
16
+
Here's how to build and run the Objective-C implementation of the [Hello World](https://github.com/grpc/grpc/blob/master/examples/protos/helloworld.proto) example used in the [Overview](/docs/index.html).
17
17
18
-
The example code for this and our other examples lives in the `grpc-common`
19
-
GitHub repository. Clone this repository to your local machine by running the
18
+
The example code for this and our other examples lives in the `examples`
19
+
directory. Clone this repository to your local machine by running the
- Run a gRPC server. Follow the instruction in [Node][] to run an example server (we only support writing clients in PHP):
42
42
43
43
```
44
-
$ cd grpc-common/node
44
+
$ cd examples/node
45
45
$ nodejs greeter_server.js
46
46
```
47
47
48
48
- Run the client:
49
49
50
50
```
51
-
$ cd grpc-common/php
51
+
$ cd examples/php
52
52
$ ./run_greeter_client.sh
53
53
```
54
54
@@ -64,7 +64,7 @@ Optional - REBUILDING THE GENERATED CODE
64
64
The PHP client stub implementation of the proto files can be generated by the [`protoc-gen-php`](https://github.com/datto/protobuf-php) tool. To install the tool:
Copy file name to clipboardExpand all lines: docs/tutorials/basic/c.md
+8-8
Original file line number
Diff line number
Diff line change
@@ -27,22 +27,22 @@ With gRPC we can define our service once in a .proto file and implement clients
27
27
28
28
## Example code and setup
29
29
30
-
The example code for our tutorial is in [grpc/grpc-common/cpp/route_guide](https://github.com/grpc/grpc-common/tree/master/cpp/route_guide). To download the example, clone the `grpc-common` repository by running the following command:
30
+
The example code for our tutorial is in [grpc/grpc/examples/cpp/route_guide](https://github.com/grpc/grpc/tree/master/examples/cpp/route_guide). To download the example, clone the `grpc` repository by running the following command:
Then change your current directory to `grpc-common/cpp/route_guide`:
35
+
Then change your current directory to `examples/cpp/route_guide`:
36
36
```
37
-
$ cd grpc-common/cpp/route_guide
37
+
$ cd examples/cpp/route_guide
38
38
```
39
39
40
40
You also should have the relevant tools installed to generate the server and client interface code - if you don't already, follow the setup instructions in [the C++ quick start guide](/docs/installation/c.html).
41
41
42
42
43
43
## Defining the service
44
44
45
-
Our first step (as you'll know from the [Overview](/docs/index.html)) is to define the gRPC *service* and the method *request* and *response* types using [protocol buffers] (https://developers.google.com/protocol-buffers/docs/overview). You can see the complete .proto file in [`grpc-common/protos/route_guide.proto`](https://github.com/grpc/grpc-common/blob/master/protos/route_guide.proto).
45
+
Our first step (as you'll know from the [Overview](/docs/index.html)) is to define the gRPC *service* and the method *request* and *response* types using [protocol buffers] (https://developers.google.com/protocol-buffers/docs/overview). You can see the complete .proto file in [`examples/protos/route_guide.proto`](https://github.com/grpc/grpc/blob/master/examples/protos/route_guide.proto).
46
46
47
47
To define a service, you specify a named `service` in your .proto file:
48
48
@@ -105,7 +105,7 @@ message Point {
105
105
106
106
Next we need to generate the gRPC client and server interfaces from our .proto service definition. We do this using the protocol buffer compiler `protoc` with a special gRPC C++ plugin.
107
107
108
-
For simplicity, we've provided a [makefile](https://github.com/grpc/grpc-common/blob/master/cpp/route_guide/Makefile) that runs `protoc` for you with the appropriate plugin, input, and output (if you want to run this yourself, make sure you've installed protoc and followed the gRPC code [installation instructions](https://github.com/grpc/grpc/blob/master/INSTALL) first):
108
+
For simplicity, we've provided a [makefile](https://github.com/grpc/grpc/blob/master/examples/cpp/route_guide/Makefile) that runs `protoc` for you with the appropriate plugin, input, and output (if you want to run this yourself, make sure you've installed protoc and followed the gRPC code [installation instructions](https://github.com/grpc/grpc/blob/master/INSTALL) first):
109
109
110
110
```
111
111
$ make route_guide.grpc.pb.cc route_guide.pb.cc
@@ -140,7 +140,7 @@ There are two parts to making our `RouteGuide` service do its job:
140
140
- Implementing the service interface generated from our service definition: doing the actual "work" of our service.
141
141
- Running a gRPC server to listen for requests from clients and return the service responses.
142
142
143
-
You can find our example `RouteGuide` server in [grpc-common/cpp/route_guide/route_guide_server.cc](https://github.com/grpc/grpc-common/blob/master/cpp/route_guide/route_guide_server.cc). Let's take a closer look at how it works.
143
+
You can find our example `RouteGuide` server in [examples/cpp/route_guide/route_guide_server.cc](https://github.com/grpc/grpc/blob/master/examples/cpp/route_guide/route_guide_server.cc). Let's take a closer look at how it works.
144
144
145
145
### Implementing RouteGuide
146
146
@@ -250,7 +250,7 @@ As you can see, we build and start our server using a `ServerBuilder`. To do thi
250
250
<aname="client"></a>
251
251
## Creating the client
252
252
253
-
In this section, we'll look at creating a C++ client for our `RouteGuide` service. You can see our complete example client code in [grpc-common/cpp/route_guide/route_guide_client.cc](https://github.com/grpc/grpc-common/blob/master/cpp/route_guide/route_guide_client.cc).
253
+
In this section, we'll look at creating a C++ client for our `RouteGuide` service. You can see our complete example client code in [examples/cpp/route_guide/route_guide_client.cc](https://github.com/grpc/grpc/blob/master/examples/cpp/route_guide/route_guide_client.cc).
Copy file name to clipboardExpand all lines: docs/tutorials/basic/csharp.md
+8-8
Original file line number
Diff line number
Diff line change
@@ -28,13 +28,13 @@ With gRPC we can define our service once in a .proto file and implement clients
28
28
29
29
## Example code and setup
30
30
31
-
The example code for our tutorial is in [grpc/grpc-common/csharp/route_guide](https://github.com/grpc/grpc-common/tree/master/csharp/route_guide). To download the example, clone the `grpc-common` repository by running the following command:
31
+
The example code for our tutorial is in [grpc/grpc/examples/csharp/route_guide](https://github.com/grpc/grpc/tree/master/examples/csharp/route_guide). To download the example, clone the `grpc` repository by running the following command:
All the files for this tutorial are in the directory `grpc-common/csharp/route_guide`.
37
-
Open the solution `grpc-common/csharp/route_guide/RouteGuide.sln` from Visual Studio (or Monodevelop on Linux).
36
+
All the files for this tutorial are in the directory `examples/csharp/route_guide`.
37
+
Open the solution `examples/csharp/route_guide/RouteGuide.sln` from Visual Studio (or Monodevelop on Linux).
38
38
39
39
On Windows, you should not need to do anything besides opening the solution. All the needed dependencies will be restored
40
40
for you automatically by the `Grpc` NuGet package upon building the solution.
@@ -44,7 +44,7 @@ able to generate the server and client interface code and run the examples. Foll
44
44
45
45
## Defining the service
46
46
47
-
Our first step (as you'll know from the [Overview](/docs/index.html)) is to define the gRPC *service* and the method *request* and *response* types using [protocol buffers] (https://developers.google.com/protocol-buffers/docs/overview). You can see the complete .proto file in [`grpc-common/csharp/route_guide/RouteGuide/protos/route_guide.proto`](https://github.com/grpc/grpc-common/blob/master/sharp/route_guide/RouteGuide/protos/route_guide.proto).
47
+
Our first step (as you'll know from the [Overview](/docs/index.html)) is to define the gRPC *service* and the method *request* and *response* types using [protocol buffers] (https://developers.google.com/protocol-buffers/docs/overview). You can see the complete .proto file in [`examples/csharp/route_guide/RouteGuide/protos/route_guide.proto`](https://github.com/grpc/grpc/blob/master/examples/csharp/route_guide/RouteGuide/protos/route_guide.proto).
48
48
49
49
To define a service, you specify a named `service` in your .proto file:
50
50
@@ -146,7 +146,7 @@ There are two parts to making our `RouteGuide` service do its job:
146
146
- Implementing the service interface generated from our service definition: doing the actual "work" of our service.
147
147
- Running a gRPC server to listen for requests from clients and return the service responses.
148
148
149
-
You can find our example `RouteGuide` server in [grpc-common/csharp/route_guide/RouteGuideServer/RouteGuideImpl.cs](https://github.com/grpc/grpc-common/blob/master/csharp/route_guide/RouteGuideServer/RouteGuideServerImpl.cs). Let's take a closer look at how it works.
149
+
You can find our example `RouteGuide` server in [examples/csharp/route_guide/RouteGuideServer/RouteGuideImpl.cs](https://github.com/grpc/grpc/blob/master/examples/csharp/route_guide/RouteGuideServer/RouteGuideServerImpl.cs). Let's take a closer look at how it works.
150
150
151
151
### Implementing RouteGuide
152
152
@@ -307,7 +307,7 @@ As you can see, we build and start our server using `Grpc.Core.Server` class. To
307
307
<aname="client"></a>
308
308
## Creating the client
309
309
310
-
In this section, we'll look at creating a C# client for our `RouteGuide` service. You can see our complete example client code in [grpc-common/csharp/route_guide/RouteGuideClient/Program.cs](https://github.com/grpc/grpc-common/blob/master/csharp/route_guide/RouteGuideClient/Program.cs).
310
+
In this section, we'll look at creating a C# client for our `RouteGuide` service. You can see our complete example client code in [examples/csharp/route_guide/RouteGuideClient/Program.cs](https://github.com/grpc/grpc/blob/master/examples/csharp/route_guide/RouteGuideClient/Program.cs).
311
311
312
312
### Creating a stub
313
313
@@ -411,7 +411,7 @@ Finally, let's look at our bidirectional streaming RPC `RouteChat`. In this case
411
411
412
412
Build client and server:
413
413
414
-
- Open the solution `grpc-common/csharp/route_guide/RouteGuide.sln` from Visual Studio (or Monodevelop on Linux) and select **Build**.
414
+
- Open the solution `examples/csharp/route_guide/RouteGuide.sln` from Visual Studio (or Monodevelop on Linux) and select **Build**.
415
415
416
416
- Run the server, which will listen on port 50052:
Copy file name to clipboardExpand all lines: docs/tutorials/basic/go.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ You also should have the relevant tools installed to generate the server and cli
42
42
43
43
## Defining the service
44
44
45
-
Our first step (as you'll know from the [Overview](/docs/index.html)) is to define the gRPC *service* and the method *request* and *response* types using [protocol buffers] (https://developers.google.com/protocol-buffers/docs/overview). You can see the complete .proto file in [`grpc-common/protos/route_guide.proto`](https://github.com/grpc/grpc-common/blob/master/protos/route_guide.proto).
45
+
Our first step (as you'll know from the [Overview](/docs/index.html)) is to define the gRPC *service* and the method *request* and *response* types using [protocol buffers] (https://developers.google.com/protocol-buffers/docs/overview). You can see the complete .proto file in [`examples/helloworld/proto/route_guide.proto`](https://github.com/grpc/grpc-go/blob/master/examples/helloworld/proto/route_guide.proto).
46
46
47
47
To define a service, you specify a named `service` in your .proto file:
0 commit comments