package comment
This commit is contained in:
parent
bc34008b65
commit
3be0672b82
@ -51,6 +51,7 @@ greeter.proto
|
|||||||
```shell
|
```shell
|
||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
|
|
||||||
|
// package name is used as the service name for discovery
|
||||||
package go.micro.srv.greeter;
|
package go.micro.srv.greeter;
|
||||||
|
|
||||||
service Say {
|
service Say {
|
||||||
@ -66,6 +67,9 @@ message Response {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**Note: Remember to set package name in the proto, it's used to generate
|
||||||
|
the service for discovery.**
|
||||||
|
|
||||||
### Generate code
|
### Generate code
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
Loading…
Reference in New Issue
Block a user