<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>service on Golang</title><link>https://golang.k5kc.com/tags/service/</link><description>Recent content in service on Golang</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Sun, 16 Aug 2020 00:16:00 +0530</lastBuildDate><atom:link href="https://golang.k5kc.com/tags/service/index.xml" rel="self" type="application/rss+xml"/><item><title>Defining gRPC service</title><link>https://golang.k5kc.com/2020/08/16/7.defining-service/</link><pubDate>Sun, 16 Aug 2020 00:16:00 +0530</pubDate><guid>https://golang.k5kc.com/2020/08/16/7.defining-service/</guid><description>Our first step (as you&amp;rsquo;ll know from the quick start) is to define the gRPC service and the method request and response types using protocol buffers. You can see the complete .proto file in examples/route_guide/routeguide/route_guide.proto.
To define a service, you specify a named service in your .proto file:
service RouteGuide { ... } Then you define rpc methods inside your service definition, specifying their request and response types. gRPC lets you define four kinds of service method, all of which are used in the RouteGuide service:</description></item></channel></rss>