diff --git a/client/http/proto/github_micro.pb.go b/client/http/proto/github_micro.pb.go index ffd7182..d82bf89 100644 --- a/client/http/proto/github_micro.pb.go +++ b/client/http/proto/github_micro.pb.go @@ -14,13 +14,13 @@ var ( GithubName = "Github" GithubEndpoints = []api.Endpoint{ - api.Endpoint{ + { Name: "Github.LookupUser", Path: []string{"/users/{username}"}, Method: []string{"GET"}, Handler: "rpc", }, - api.Endpoint{ + { Name: "Github.LookupUserWithoutPath", Path: []string{"/{username}"}, Method: []string{"GET"}, diff --git a/flow/proto/test_micro.pb.go b/flow/proto/test_micro.pb.go index fcd4737..d004111 100644 --- a/flow/proto/test_micro.pb.go +++ b/flow/proto/test_micro.pb.go @@ -14,26 +14,26 @@ var ( TestServiceName = "TestService" TestServiceEndpoints = []api.Endpoint{ - api.Endpoint{ + { Name: "TestService.LookupUser", Path: []string{"/v1/user/{name}"}, Method: []string{"GET"}, Handler: "rpc", }, - api.Endpoint{ + { Name: "TestService.UpdateUser", Path: []string{"/v1/user/{name}"}, Method: []string{"PUT"}, Body: "*", Handler: "rpc", }, - api.Endpoint{ + { Name: "TestService.DeleteUser", Path: []string{"/v1/user/{name}"}, Method: []string{"DELETE"}, Handler: "rpc", }, - api.Endpoint{ + { Name: "TestService.MailUser", Path: []string{"/v1/user/{name}/mail"}, Method: []string{"POST"}, diff --git a/go.mod b/go.mod index 806a5a1..4c7ae3c 100644 --- a/go.mod +++ b/go.mod @@ -49,6 +49,7 @@ require ( golang.org/x/text v0.3.7 // indirect google.golang.org/genproto v0.0.0-20210816143620-e15ff196659d google.golang.org/grpc v1.40.0 + google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0 // indirect google.golang.org/protobuf v1.27.1 gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect storj.io/drpc v0.0.24 diff --git a/go.sum b/go.sum index 2db566d..2c1fae6 100644 --- a/go.sum +++ b/go.sum @@ -587,6 +587,8 @@ google.golang.org/grpc v1.37.1/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQ google.golang.org/grpc v1.39.0/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= google.golang.org/grpc v1.40.0 h1:AGJ0Ih4mHjSeibYkFGh1dD9KJ/eOtZ93I6hoHhukQ5Q= google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= +google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0 h1:M1YKkFIboKNieVO5DLUEVzQfGwJD30Nv2jfUgzb5UcE= +google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= diff --git a/server/http/proto/test_micro.pb.go b/server/http/proto/test_micro.pb.go index a6e5ceb..242035a 100644 --- a/server/http/proto/test_micro.pb.go +++ b/server/http/proto/test_micro.pb.go @@ -14,7 +14,7 @@ var ( TestDoubleName = "TestDouble" TestDoubleEndpoints = []api.Endpoint{ - api.Endpoint{ + { Name: "TestDouble.CallDouble", Path: []string{"/v1/testdouble/call/name/{name}"}, Method: []string{"POST"}, @@ -40,28 +40,28 @@ var ( TestName = "Test" TestEndpoints = []api.Endpoint{ - api.Endpoint{ + { Name: "Test.CallRepeatedString", Path: []string{"/v1/test/call_repeated_string/{string_ids}"}, Method: []string{"POST"}, Body: "*", Handler: "rpc", }, - api.Endpoint{ + { Name: "Test.CallRepeatedInt64", Path: []string{"/v1/test/call_repeated_int64/{int64_ids}"}, Method: []string{"POST"}, Body: "*", Handler: "rpc", }, - api.Endpoint{ + { Name: "Test.Call", Path: []string{"/v1/test/call/{name}"}, Method: []string{"POST"}, Body: "*", Handler: "rpc", }, - api.Endpoint{ + { Name: "Test.CallError", Path: []string{"/v1/test/callerror/{name}"}, Method: []string{"POST"},