mirror of
https://github.com/go-micro/go-micro.git
synced 2024-11-24 08:02:32 +02:00
Add a bit more commenting to the API
This commit is contained in:
parent
669505be4c
commit
891064931b
@ -125,6 +125,10 @@ Hello John
|
||||
## Writing a service
|
||||
|
||||
### Create request/response proto
|
||||
|
||||
One of the key requirements of microservices is strongly defined interfaces so we utilised protobuf to define the handler and request/response.
|
||||
Here's a definition for the Greeter handler with the method Hello which takes a HelloRequest and HelloResponse both with one string arguments.
|
||||
|
||||
`go-micro/examples/service/proto/greeter.proto`:
|
||||
|
||||
```proto
|
||||
|
Loading…
Reference in New Issue
Block a user