Created
June 3, 2018 21:24
-
-
Save antklim/fae4b00aa8f610aef9cdb4ec4b487493 to your computer and use it in GitHub Desktop.
Gizmo greeter gRPC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package greetertransport | |
import ( | |
pb "github.com/antklim/go-microservices/gizmo-greeter/pb" | |
ocontext "golang.org/x/net/context" | |
) | |
// Greeting implementation of the gRPC service. | |
func (s *TService) Greeting(ctx ocontext.Context, r *pb.GreetingRequest) (*pb.GreetingResponse, error) { | |
return &pb.GreetingResponse{Greeting: "Hola Gizmo RPC " + r.Name}, nil | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment