Skip to content

Instantly share code, notes, and snippets.

@antklim
Created June 3, 2018 21:24
Show Gist options
  • Save antklim/fae4b00aa8f610aef9cdb4ec4b487493 to your computer and use it in GitHub Desktop.
Save antklim/fae4b00aa8f610aef9cdb4ec4b487493 to your computer and use it in GitHub Desktop.
Gizmo greeter gRPC
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