Skip to content

Commit

Permalink
Updated example server with missing method
Browse files Browse the repository at this point in the history
  • Loading branch information
warmans committed Dec 21, 2017
1 parent 00e5a4f commit a450e5c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions examples/server/a_bit_of_everything.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}

0 comments on commit a450e5c

Please sign in to comment.