diff --git a/examples/examplepb/a_bit_of_everything.pb.go b/examples/examplepb/a_bit_of_everything.pb.go index a7568201619..a5b333230ff 100644 --- a/examples/examplepb/a_bit_of_everything.pb.go +++ b/examples/examplepb/a_bit_of_everything.pb.go @@ -967,6 +967,70 @@ var _ABitOfEverythingService_serviceDesc = grpc.ServiceDesc{ Metadata: "examples/examplepb/a_bit_of_everything.proto", } +// Client API for CamelCaseServiceName service + +type CamelCaseServiceNameClient interface { + Empty(ctx context.Context, in *google_protobuf1.Empty, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) +} + +type camelCaseServiceNameClient struct { + cc *grpc.ClientConn +} + +func NewCamelCaseServiceNameClient(cc *grpc.ClientConn) CamelCaseServiceNameClient { + return &camelCaseServiceNameClient{cc} +} + +func (c *camelCaseServiceNameClient) Empty(ctx context.Context, in *google_protobuf1.Empty, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) { + out := new(google_protobuf1.Empty) + err := grpc.Invoke(ctx, "/grpc.gateway.examples.examplepb.camelCaseServiceName/Empty", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for CamelCaseServiceName service + +type CamelCaseServiceNameServer interface { + Empty(context.Context, *google_protobuf1.Empty) (*google_protobuf1.Empty, error) +} + +func RegisterCamelCaseServiceNameServer(s *grpc.Server, srv CamelCaseServiceNameServer) { + s.RegisterService(&_CamelCaseServiceName_serviceDesc, srv) +} + +func _CamelCaseServiceName_Empty_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(google_protobuf1.Empty) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CamelCaseServiceNameServer).Empty(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/grpc.gateway.examples.examplepb.camelCaseServiceName/Empty", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CamelCaseServiceNameServer).Empty(ctx, req.(*google_protobuf1.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +var _CamelCaseServiceName_serviceDesc = grpc.ServiceDesc{ + ServiceName: "grpc.gateway.examples.examplepb.camelCaseServiceName", + HandlerType: (*CamelCaseServiceNameServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Empty", + Handler: _CamelCaseServiceName_Empty_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "examples/examplepb/a_bit_of_everything.proto", +} + // Client API for AnotherServiceWithNoBindings service type AnotherServiceWithNoBindingsClient interface { @@ -1034,129 +1098,131 @@ var _AnotherServiceWithNoBindings_serviceDesc = grpc.ServiceDesc{ func init() { proto.RegisterFile("examples/examplepb/a_bit_of_everything.proto", fileDescriptor1) } var fileDescriptor1 = []byte{ - // 1983 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xcb, 0x6f, 0x1b, 0xc9, - 0xd1, 0x57, 0x93, 0x14, 0x4d, 0x16, 0xf5, 0xa0, 0x5a, 0x7e, 0xc8, 0xb4, 0xbc, 0x6a, 0xd3, 0xde, - 0xef, 0x1b, 0x6b, 0xcd, 0x99, 0x35, 0xbd, 0x08, 0xd6, 0x04, 0x92, 0x0d, 0x65, 0x71, 0x6d, 0xc3, - 0x6b, 0xd9, 0x1e, 0xef, 0x3a, 0x86, 0xe3, 0x8d, 0x30, 0xe4, 0x34, 0xc9, 0x59, 0x73, 0xa6, 0x27, - 0x33, 0x3d, 0x92, 0x18, 0x45, 0x09, 0x92, 0x05, 0x12, 0xec, 0x29, 0x80, 0x72, 0xdf, 0x4b, 0x80, - 0x20, 0x97, 0x1c, 0x72, 0xc8, 0x29, 0x40, 0x72, 0xcc, 0x21, 0xc7, 0x00, 0xb9, 0x07, 0xc8, 0x29, - 0xc7, 0xfc, 0x05, 0x41, 0xf7, 0x3c, 0x3c, 0xa4, 0x44, 0xc8, 0x94, 0x83, 0xbd, 0xd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0x29, 0xa5, 0xfa, 0x87, 0xea, 0x09, 0x01, 0x53, 0xc7, 0x35, 0xa9, 0x5b, 0x52, 0x5e, 0x9f, 0x0b, - 0xd5, 0x85, 0x2b, 0x8c, 0x21, 0x17, 0x04, 0x96, 0xb9, 0x82, 0x08, 0x52, 0x8a, 0xba, 0xfc, 0xc6, - 0x8f, 0x21, 0x1f, 0xd9, 0xca, 0x90, 0xec, 0x5b, 0xd9, 0x8a, 0xf4, 0xe0, 0x35, 0x28, 0x75, 0x07, - 0xcc, 0xe0, 0xdb, 0x3b, 0xc6, 0x20, 0xa0, 0x2b, 0x59, 0x82, 0x94, 0x8c, 0x0e, 0x72, 0xeb, 0x99, - 0xd8, 0xc1, 0x57, 0x60, 0xce, 0x64, 0x41, 0x7b, 0x40, 0x23, 0x44, 0x8e, 0x20, 0x05, 0xe9, 0xa5, - 0x70, 0x2f, 0x84, 0xac, 0x41, 0xc9, 0x72, 0xf8, 0xb7, 0x3e, 0x88, 0x10, 0xb3, 0x04, 0x29, 0x59, - 0x1d, 0xe4, 0x56, 0xa2, 0x23, 0x48, 0x23, 0xf2, 0x04, 0x29, 0x39, 0xbd, 0x14, 0xa4, 0x20, 0xa1, - 0x8e, 0x5b, 0xf5, 0x08, 0x71, 0x86, 0x20, 0x65, 0x56, 0xea, 0xb8, 0x55, 0x0f, 0x01, 0x57, 0x61, - 0xbe, 0x6b, 0xed, 0x51, 0x33, 0x51, 0x52, 0x20, 0x48, 0xc9, 0xeb, 0x73, 0xd1, 0xe6, 0x28, 0x28, - 0xd1, 0x53, 0x24, 0x48, 0x39, 0x13, 0x81, 0x62, 0x4d, 0x97, 0x01, 0xda, 0x8c, 0x0d, 0x22, 0x04, - 0x10, 0xa4, 0x14, 0xf4, 0xa2, 0xd8, 0x49, 0xc8, 0xfa, 0xdc, 0xb3, 0x9c, 0x5e, 0x04, 0x28, 0xc9, - 0xf8, 0x97, 0xc2, 0xbd, 0x84, 0x6c, 0x7b, 0xc8, 0xa9, 0x1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0x9e, 0x2d, 0xc3, 0xd2, 0x5e, 0x83, 0xf9, 0x74, - 0x28, 0x66, 0xc6, 0xc7, 0x8c, 0xf6, 0xf5, 0x89, 0x83, 0xc6, 0x38, 0xd4, 0xbb, 0x0f, 0x17, 0x1e, - 0xbe, 0xce, 0xeb, 0x74, 0x6a, 0x4c, 0x9b, 0x12, 0x2f, 0x8a, 0x49, 0xcd, 0xb7, 0xf3, 0x32, 0x2b, - 0x6f, 0xfd, 0x37, 0x00, 0x00, 0xff, 0xff, 0x7f, 0x02, 0x53, 0x7b, 0xaf, 0x16, 0x00, 0x00, + // 2012 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xcb, 0x6f, 0x1b, 0xc7, + 0x19, 0xd7, 0x90, 0x14, 0x2d, 0x7e, 0x7a, 0x51, 0x23, 0x3f, 0x64, 0x5a, 0x8e, 0xc6, 0xb4, 0xd3, + 0xae, 0x15, 0x73, 0x37, 0xa6, 0x83, 0x22, 0x26, 0xd0, 0xa6, 0x94, 0xc4, 0xd8, 0x86, 0x63, 0xd9, + 0x5e, 0x27, 0xae, 0xe1, 0x3a, 0x15, 0x96, 0xbb, 0x43, 0x72, 0x6d, 0xee, 0xce, 0x76, 0x77, 0x56, + 0x36, 0xab, 0xaa, 0x45, 0x1b, 0xa0, 0x45, 0x4e, 0x05, 0xd4, 0x7b, 0x2e, 0x05, 0x8a, 0x5e, 0x7a, + 0xe8, 0xa1, 0xa7, 0x02, 0xed, 0xb1, 0x87, 0x1e, 0x0b, 0xf4, 0x5e, 0xa0, 0xa7, 0x1e, 0xfb, 0x17, + 0x14, 0x33, 0xfb, 0xf0, 0x92, 0x12, 0x21, 0x53, 0x0e, 0x72, 0xb1, 0x77, 0xe6, 0xfb, 0x7d, 0xef, + 0xc7, 0x7c, 0x14, 0x5c, 0xa3, 0xaf, 0x0c, 0xc7, 0xeb, 0xd3, 0x40, 0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61, 0x68, 0x5b, 0x2b, 0x88, 0x20, 0xa5, 0xa4, 0xcb, 0x6f, 0xfc, 0x00, 0x8a, 0xb1, 0xae, 0x1c, + 0xc9, 0xbf, 0x95, 0xae, 0x58, 0x0e, 0x5e, 0x83, 0xd9, 0x4e, 0x9f, 0x19, 0x7c, 0x67, 0xd7, 0xe8, + 0x87, 0x74, 0x25, 0x4f, 0x90, 0x92, 0xd3, 0x41, 0x5e, 0x3d, 0x16, 0x37, 0xf8, 0x12, 0xcc, 0x59, + 0x2c, 0x6c, 0xf7, 0x69, 0x8c, 0x28, 0x10, 0xa4, 0x20, 0x7d, 0x36, 0xba, 0x8b, 0x20, 0x6b, 0x30, + 0x6b, 0xbb, 0xfc, 0x3b, 0x1f, 0xc4, 0x88, 0x69, 0x82, 0x94, 0xbc, 0x0e, 0xf2, 0x2a, 0x95, 0x11, + 0x66, 0x11, 0x45, 0x82, 0x94, 0x82, 0x3e, 0x1b, 0x66, 0x20, 0x91, 0x8c, 0x1b, 0xf5, 0x18, 0x71, + 0x8a, 0x20, 0x65, 0x5a, 0xca, 0xb8, 0x51, 0x8f, 0x00, 0x97, 0x61, 0xbe, 0x63, 0xbf, 0xa2, 0x56, + 0x2a, 0x64, 0x86, 0x20, 0xa5, 0xa8, 0xcf, 0xc5, 0x97, 0xc3, 0xa0, 0x54, 0x4e, 0x89, 0x20, 0xe5, + 0x54, 0x0c, 0x4a, 0x24, 0x5d, 0x04, 0x68, 0x33, 0xd6, 0x8f, 0x11, 0x40, 0x90, 0x32, 0xa3, 0x97, + 0xc4, 0x4d, 0x6a, 0x6c, 0xc0, 0x7d, 0xdb, 0xed, 0xc6, 0x80, 0x59, 0x19, 0xff, 0xd9, 0xe8, 0x2e, + 0x35, 0xb6, 0x3d, 0xe0, 0x34, 0x88, 0x11, 0x17, 0x09, 0x52, 0xe6, 0x74, 0x90, 0x57, 0x43, 0x0e, + 0xa7, 0x66, 0xcc, 0x13, 0xa4, 0xcc, 0x47, 0x0e, 0x27, 0x56, 0xdc, 0x05, 0xa0, 0x6e, 0xe8, 0xc4, + 0x80, 0x05, 0x82, 0x94, 0x85, 0xfa, 0xb5, 0x63, 0xd3, 0xb9, 0x1d, 0x3a, 0xd4, 0xb7, 0xcd, 0x96, + 0x1b, 0x3a, 0x7a, 0x49, 0xf0, 0x47, 0xc2, 0xde, 0x85, 0x85, 0x60, 0xd8, 0xf1, 0x45, 0x82, 0x94, + 0x45, 0x7d, 0x3e, 0x18, 0xf2, 0x3c, 0x85, 0xa5, 0x41, 0x2c, 0x13, 0xa4, 0x94, 0x13, 0x58, 0x26, + 0x5d, 0x41, 0xd6, 0xfa, 0x25, 0x82, 0x94, 0x25, 0x7d, 0x36, 0xc8, 0x58, 0x1f, 0x43, 0x52, 0x39, + 0x98, 0x20, 0x05, 0x47, 0x90, 0x44, 0x4a, 0x1d, 0xce, 0xf8, 0xd4, 0xa3, 0x06, 0xa7, 0xd6, 0xce, + 0x50, 0x40, 0x97, 0x49, 0x5e, 0x29, 0xe9, 0xcb, 0x09, 0xf1, 0x51, 0x26, 0xb0, 0x37, 0x61, 0x96, + 0xb9, 0x54, 0x4c, 0x21, 0x31, 0x24, 0x56, 0x4e, 0xcb, 0x86, 0x3a, 0xab, 0x46, 0xcd, 0xac, 0x26, + 0xcd, 0xac, 0xb6, 0x04, 0xf5, 0xf6, 0x94, 0x0e, 0x12, 0x2c, 0x4f, 0xf8, 0x32, 0xcc, 0x45, 0xac, + 0x91, 0xae, 0x95, 0x33, 0x22, 0x6d, 0xb7, 0xa7, 0xf4, 0x48, 0x60, 0xa4, 0x04, 0x3f, 0x83, 0x92, + 0x63, 0x78, 0xb1, 0x1d, 0x67, 0x65, 0x0b, 0x7d, 0x34, 0x79, 0x0b, 0xdd, 0x33, 0x3c, 0x69, 0x6e, + 0xcb, 0xe5, 0xfe, 0x40, 0x9f, 0x71, 0xe2, 0x23, 0x7e, 0x05, 0xcb, 0x8e, 0xe1, 0x79, 0xa3, 0xfe, + 0x9e, 0x93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04, 0x23, 0x9c, 0x11, 0x09, 0xb3, 0x03, 0x2e, 0xe6, 0xe9, 0x2e, + 0x25, 0xb6, 0xdb, 0x61, 0xbe, 0x23, 0xc3, 0xd2, 0x5e, 0x83, 0xf9, 0x6c, 0x28, 0xa6, 0x46, 0x57, + 0x9a, 0xf6, 0xd5, 0xb1, 0x4b, 0xcd, 0x28, 0xd4, 0xbf, 0x03, 0xe7, 0xee, 0xbd, 0xee, 0xa1, 0x6c, + 0x69, 0x4c, 0x5a, 0x12, 0x4f, 0x4b, 0xe9, 0x7c, 0x69, 0x17, 0x65, 0x55, 0xde, 0xf8, 0x7f, 0x00, + 0x00, 0x00, 0xff, 0xff, 0xf9, 0xc4, 0x26, 0x62, 0x1b, 0x17, 0x00, 0x00, } diff --git a/examples/examplepb/a_bit_of_everything.pb.gw.go b/examples/examplepb/a_bit_of_everything.pb.gw.go index b2f40a3f04e..5fc7bbdb8c0 100644 --- a/examples/examplepb/a_bit_of_everything.pb.gw.go +++ b/examples/examplepb/a_bit_of_everything.pb.gw.go @@ -533,6 +533,15 @@ func request_ABitOfEverythingService_PostWithEmptyBody_0(ctx context.Context, ma } +func request_CamelCaseServiceName_Empty_0(ctx context.Context, marshaler runtime.Marshaler, client CamelCaseServiceNameClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq empty.Empty + var metadata runtime.ServerMetadata + + msg, err := client.Empty(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + // RegisterABitOfEverythingServiceHandlerFromEndpoint is same as RegisterABitOfEverythingServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterABitOfEverythingServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { @@ -1039,3 +1048,81 @@ var ( forward_ABitOfEverythingService_PostWithEmptyBody_0 = runtime.ForwardResponseMessage ) + +// RegisterCamelCaseServiceNameHandlerFromEndpoint is same as RegisterCamelCaseServiceNameHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterCamelCaseServiceNameHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.Dial(endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Printf("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Printf("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterCamelCaseServiceNameHandler(ctx, mux, conn) +} + +// RegisterCamelCaseServiceNameHandler registers the http handlers for service CamelCaseServiceName to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterCamelCaseServiceNameHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterCamelCaseServiceNameHandlerClient(ctx, mux, NewCamelCaseServiceNameClient(conn)) +} + +// RegisterCamelCaseServiceNameHandler registers the http handlers for service CamelCaseServiceName to "mux". +// The handlers forward requests to the grpc endpoint over the given implementation of "CamelCaseServiceNameClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CamelCaseServiceNameClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "CamelCaseServiceNameClient" to call the correct interceptors. +func RegisterCamelCaseServiceNameHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CamelCaseServiceNameClient) error { + + mux.Handle("GET", pattern_CamelCaseServiceName_Empty_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_CamelCaseServiceName_Empty_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_CamelCaseServiceName_Empty_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_CamelCaseServiceName_Empty_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v2", "example", "empty"}, "")) +) + +var ( + forward_CamelCaseServiceName_Empty_0 = runtime.ForwardResponseMessage +) diff --git a/examples/examplepb/a_bit_of_everything.proto b/examples/examplepb/a_bit_of_everything.proto index f9869e5fc0d..efcc6411111 100644 --- a/examples/examplepb/a_bit_of_everything.proto +++ b/examples/examplepb/a_bit_of_everything.proto @@ -303,7 +303,14 @@ service ABitOfEverythingService { }; } } - +// camelCase and lowercase service names are valid but not recommended (use TitleCase instead) +service camelCaseServiceName { + rpc Empty(google.protobuf.Empty) returns (google.protobuf.Empty) { + option (google.api.http) = { + get: "/v2/example/empty", + }; + } +} service AnotherServiceWithNoBindings { rpc NoBindings(google.protobuf.Empty) returns (google.protobuf.Empty) {} } diff --git a/examples/examplepb/a_bit_of_everything.swagger.json b/examples/examplepb/a_bit_of_everything.swagger.json index 02c2f892dd7..aa7f2479021 100644 --- a/examples/examplepb/a_bit_of_everything.swagger.json +++ b/examples/examplepb/a_bit_of_everything.swagger.json @@ -593,6 +593,22 @@ } } }, + "/v2/example/empty": { + "get": { + "operationId": "Empty", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/protobufEmpty" + } + } + }, + "tags": [ + "camelCaseServiceName" + ] + } + }, "/v2/example/errorwithdetails": { "get": { "operationId": "ErrorWithDetails", diff --git a/protoc-gen-grpc-gateway/gengateway/template.go b/protoc-gen-grpc-gateway/gengateway/template.go index 2354eac533b..ef52049a625 100644 --- a/protoc-gen-grpc-gateway/gengateway/template.go +++ b/protoc-gen-grpc-gateway/gengateway/template.go @@ -80,6 +80,8 @@ func applyTemplate(p param) (string, error) { var targetServices []*descriptor.Service for _, svc := range p.Services { var methodWithBindingsSeen bool + svcName := strings.Title(*svc.Name) + svc.Name = &svcName for _, meth := range svc.Methods { glog.V(2).Infof("Processing %s.%s", svc.GetName(), meth.GetName()) methName := strings.Title(*meth.Name)