diff --git a/examples/server/a_bit_of_everything.go b/examples/server/a_bit_of_everything.go index 38c6467c54e..c9fb1619e4e 100644 --- a/examples/server/a_bit_of_everything.go +++ b/examples/server/a_bit_of_everything.go @@ -9,14 +9,15 @@ import ( "github.com/golang/protobuf/ptypes/duration" "github.com/golang/protobuf/ptypes/empty" examples "github.com/grpc-ecosystem/grpc-gateway/examples/examplepb" - sub "github.com/grpc-ecosystem/grpc-gateway/examples/sub" - sub2 "github.com/grpc-ecosystem/grpc-gateway/examples/sub2" + "github.com/grpc-ecosystem/grpc-gateway/examples/sub" + "github.com/grpc-ecosystem/grpc-gateway/examples/sub2" "github.com/rogpeppe/fastuuid" "golang.org/x/net/context" "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/metadata" "google.golang.org/grpc/status" + "github.com/warmans/grpc-gateway/examples/examplepb" ) // Implements of ABitOfEverythingServiceServer @@ -246,3 +247,7 @@ func (s *_ABitOfEverythingServer) Timeout(ctx context.Context, msg *empty.Empty) return nil, ctx.Err() } } + +func (s *_ABitOfEverythingServer) GetMessageWithBody(context.Context, *examplepb.MessageWithBody) (*empty.Empty, error) { + return &empty.Empty{}, nil +}