diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2017-01-24 13:05:47 +0300 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2017-01-24 13:05:47 +0300 |
commit | 2f15e64dd1d08f4de00e92c4610de58ec3f09a2d (patch) | |
tree | 69d8c1004e6c8f613fddab04c67ac011704d779c | |
parent | 7d17c4097fbc32ebab955f3361da522e8818177e (diff) |
Call the service 'SmartHTTP' not 'SmartHttp'
-rw-r--r-- | protos/gitaly.proto | 2 | ||||
-rw-r--r-- | protos/go/gitaly.pb.go | 86 | ||||
-rw-r--r-- | protos/ruby/lib/gitaly/gitaly_services_pb.rb | 4 |
3 files changed, 46 insertions, 46 deletions
diff --git a/protos/gitaly.proto b/protos/gitaly.proto index 9f823fbad..de9eddf18 100644 --- a/protos/gitaly.proto +++ b/protos/gitaly.proto @@ -3,7 +3,7 @@ syntax = "proto3"; package gitaly; // The Git 'smart HTTP' protocol -service SmartHttp { +service SmartHTTP { // The response body for GET /info/refs?service=git-upload-pack rpc InfoRefsUploadPack(InfoRefsRequest) returns (stream InfoRefsResponse) {} diff --git a/protos/go/gitaly.pb.go b/protos/go/gitaly.pb.go index 1fa937b79..ae432bdd8 100644 --- a/protos/go/gitaly.pb.go +++ b/protos/go/gitaly.pb.go @@ -79,29 +79,29 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for SmartHttp service +// Client API for SmartHTTP service -type SmartHttpClient interface { +type SmartHTTPClient interface { // The response body for GET /info/refs?service=git-upload-pack - InfoRefsUploadPack(ctx context.Context, in *InfoRefsRequest, opts ...grpc.CallOption) (SmartHttp_InfoRefsUploadPackClient, error) + InfoRefsUploadPack(ctx context.Context, in *InfoRefsRequest, opts ...grpc.CallOption) (SmartHTTP_InfoRefsUploadPackClient, error) // The response body for GET /info/refs?service=git-receive-pack - InfoRefsReceivePack(ctx context.Context, in *InfoRefsRequest, opts ...grpc.CallOption) (SmartHttp_InfoRefsReceivePackClient, error) + InfoRefsReceivePack(ctx context.Context, in *InfoRefsRequest, opts ...grpc.CallOption) (SmartHTTP_InfoRefsReceivePackClient, error) } -type smartHttpClient struct { +type smartHTTPClient struct { cc *grpc.ClientConn } -func NewSmartHttpClient(cc *grpc.ClientConn) SmartHttpClient { - return &smartHttpClient{cc} +func NewSmartHTTPClient(cc *grpc.ClientConn) SmartHTTPClient { + return &smartHTTPClient{cc} } -func (c *smartHttpClient) InfoRefsUploadPack(ctx context.Context, in *InfoRefsRequest, opts ...grpc.CallOption) (SmartHttp_InfoRefsUploadPackClient, error) { - stream, err := grpc.NewClientStream(ctx, &_SmartHttp_serviceDesc.Streams[0], c.cc, "/gitaly.SmartHttp/InfoRefsUploadPack", opts...) +func (c *smartHTTPClient) InfoRefsUploadPack(ctx context.Context, in *InfoRefsRequest, opts ...grpc.CallOption) (SmartHTTP_InfoRefsUploadPackClient, error) { + stream, err := grpc.NewClientStream(ctx, &_SmartHTTP_serviceDesc.Streams[0], c.cc, "/gitaly.SmartHTTP/InfoRefsUploadPack", opts...) if err != nil { return nil, err } - x := &smartHttpInfoRefsUploadPackClient{stream} + x := &smartHTTPInfoRefsUploadPackClient{stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -111,16 +111,16 @@ func (c *smartHttpClient) InfoRefsUploadPack(ctx context.Context, in *InfoRefsRe return x, nil } -type SmartHttp_InfoRefsUploadPackClient interface { +type SmartHTTP_InfoRefsUploadPackClient interface { Recv() (*InfoRefsResponse, error) grpc.ClientStream } -type smartHttpInfoRefsUploadPackClient struct { +type smartHTTPInfoRefsUploadPackClient struct { grpc.ClientStream } -func (x *smartHttpInfoRefsUploadPackClient) Recv() (*InfoRefsResponse, error) { +func (x *smartHTTPInfoRefsUploadPackClient) Recv() (*InfoRefsResponse, error) { m := new(InfoRefsResponse) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err @@ -128,12 +128,12 @@ func (x *smartHttpInfoRefsUploadPackClient) Recv() (*InfoRefsResponse, error) { return m, nil } -func (c *smartHttpClient) InfoRefsReceivePack(ctx context.Context, in *InfoRefsRequest, opts ...grpc.CallOption) (SmartHttp_InfoRefsReceivePackClient, error) { - stream, err := grpc.NewClientStream(ctx, &_SmartHttp_serviceDesc.Streams[1], c.cc, "/gitaly.SmartHttp/InfoRefsReceivePack", opts...) +func (c *smartHTTPClient) InfoRefsReceivePack(ctx context.Context, in *InfoRefsRequest, opts ...grpc.CallOption) (SmartHTTP_InfoRefsReceivePackClient, error) { + stream, err := grpc.NewClientStream(ctx, &_SmartHTTP_serviceDesc.Streams[1], c.cc, "/gitaly.SmartHTTP/InfoRefsReceivePack", opts...) if err != nil { return nil, err } - x := &smartHttpInfoRefsReceivePackClient{stream} + x := &smartHTTPInfoRefsReceivePackClient{stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -143,16 +143,16 @@ func (c *smartHttpClient) InfoRefsReceivePack(ctx context.Context, in *InfoRefsR return x, nil } -type SmartHttp_InfoRefsReceivePackClient interface { +type SmartHTTP_InfoRefsReceivePackClient interface { Recv() (*InfoRefsResponse, error) grpc.ClientStream } -type smartHttpInfoRefsReceivePackClient struct { +type smartHTTPInfoRefsReceivePackClient struct { grpc.ClientStream } -func (x *smartHttpInfoRefsReceivePackClient) Recv() (*InfoRefsResponse, error) { +func (x *smartHTTPInfoRefsReceivePackClient) Recv() (*InfoRefsResponse, error) { m := new(InfoRefsResponse) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err @@ -160,74 +160,74 @@ func (x *smartHttpInfoRefsReceivePackClient) Recv() (*InfoRefsResponse, error) { return m, nil } -// Server API for SmartHttp service +// Server API for SmartHTTP service -type SmartHttpServer interface { +type SmartHTTPServer interface { // The response body for GET /info/refs?service=git-upload-pack - InfoRefsUploadPack(*InfoRefsRequest, SmartHttp_InfoRefsUploadPackServer) error + InfoRefsUploadPack(*InfoRefsRequest, SmartHTTP_InfoRefsUploadPackServer) error // The response body for GET /info/refs?service=git-receive-pack - InfoRefsReceivePack(*InfoRefsRequest, SmartHttp_InfoRefsReceivePackServer) error + InfoRefsReceivePack(*InfoRefsRequest, SmartHTTP_InfoRefsReceivePackServer) error } -func RegisterSmartHttpServer(s *grpc.Server, srv SmartHttpServer) { - s.RegisterService(&_SmartHttp_serviceDesc, srv) +func RegisterSmartHTTPServer(s *grpc.Server, srv SmartHTTPServer) { + s.RegisterService(&_SmartHTTP_serviceDesc, srv) } -func _SmartHttp_InfoRefsUploadPack_Handler(srv interface{}, stream grpc.ServerStream) error { +func _SmartHTTP_InfoRefsUploadPack_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(InfoRefsRequest) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(SmartHttpServer).InfoRefsUploadPack(m, &smartHttpInfoRefsUploadPackServer{stream}) + return srv.(SmartHTTPServer).InfoRefsUploadPack(m, &smartHTTPInfoRefsUploadPackServer{stream}) } -type SmartHttp_InfoRefsUploadPackServer interface { +type SmartHTTP_InfoRefsUploadPackServer interface { Send(*InfoRefsResponse) error grpc.ServerStream } -type smartHttpInfoRefsUploadPackServer struct { +type smartHTTPInfoRefsUploadPackServer struct { grpc.ServerStream } -func (x *smartHttpInfoRefsUploadPackServer) Send(m *InfoRefsResponse) error { +func (x *smartHTTPInfoRefsUploadPackServer) Send(m *InfoRefsResponse) error { return x.ServerStream.SendMsg(m) } -func _SmartHttp_InfoRefsReceivePack_Handler(srv interface{}, stream grpc.ServerStream) error { +func _SmartHTTP_InfoRefsReceivePack_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(InfoRefsRequest) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(SmartHttpServer).InfoRefsReceivePack(m, &smartHttpInfoRefsReceivePackServer{stream}) + return srv.(SmartHTTPServer).InfoRefsReceivePack(m, &smartHTTPInfoRefsReceivePackServer{stream}) } -type SmartHttp_InfoRefsReceivePackServer interface { +type SmartHTTP_InfoRefsReceivePackServer interface { Send(*InfoRefsResponse) error grpc.ServerStream } -type smartHttpInfoRefsReceivePackServer struct { +type smartHTTPInfoRefsReceivePackServer struct { grpc.ServerStream } -func (x *smartHttpInfoRefsReceivePackServer) Send(m *InfoRefsResponse) error { +func (x *smartHTTPInfoRefsReceivePackServer) Send(m *InfoRefsResponse) error { return x.ServerStream.SendMsg(m) } -var _SmartHttp_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.SmartHttp", - HandlerType: (*SmartHttpServer)(nil), +var _SmartHTTP_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.SmartHTTP", + HandlerType: (*SmartHTTPServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "InfoRefsUploadPack", - Handler: _SmartHttp_InfoRefsUploadPack_Handler, + Handler: _SmartHTTP_InfoRefsUploadPack_Handler, ServerStreams: true, }, { StreamName: "InfoRefsReceivePack", - Handler: _SmartHttp_InfoRefsReceivePack_Handler, + Handler: _SmartHTTP_InfoRefsReceivePack_Handler, ServerStreams: true, }, }, @@ -244,10 +244,10 @@ var fileDescriptor0 = []byte{ 0xa4, 0xb9, 0x38, 0x8b, 0x52, 0x0b, 0xf2, 0xe3, 0x0b, 0x12, 0x4b, 0x32, 0x24, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0x38, 0x40, 0x02, 0x01, 0x89, 0x25, 0x19, 0x4a, 0x6a, 0x5c, 0x02, 0x08, 0xf5, 0xc5, 0x05, 0xf9, 0x79, 0xc5, 0xa9, 0x42, 0x42, 0x5c, 0x2c, 0x29, 0x89, 0x25, 0x89, 0x60, 0xb5, - 0x3c, 0x41, 0x60, 0xb6, 0xd1, 0x32, 0x46, 0x2e, 0xce, 0xe0, 0xdc, 0xc4, 0xa2, 0x12, 0x8f, 0x92, - 0x92, 0x02, 0x21, 0x6f, 0x2e, 0x21, 0x98, 0xae, 0xd0, 0x82, 0x9c, 0xfc, 0xc4, 0x94, 0x80, 0xc4, + 0x3c, 0x41, 0x60, 0xb6, 0xd1, 0x32, 0x46, 0x2e, 0xce, 0xe0, 0xdc, 0xc4, 0xa2, 0x12, 0x8f, 0x90, + 0x90, 0x00, 0x21, 0x6f, 0x2e, 0x21, 0x98, 0xae, 0xd0, 0x82, 0x9c, 0xfc, 0xc4, 0x94, 0x80, 0xc4, 0xe4, 0x6c, 0x21, 0x71, 0x3d, 0xa8, 0x93, 0xd0, 0x5c, 0x20, 0x25, 0x81, 0x29, 0x01, 0xb1, 0x4a, 0x89, 0xc1, 0x80, 0x51, 0xc8, 0x87, 0x4b, 0x18, 0x21, 0x9e, 0x9c, 0x9a, 0x59, 0x96, 0x4a, 0x81, - 0x69, 0x49, 0x6c, 0xe0, 0xf0, 0x30, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x8e, 0x3c, 0x44, 0x62, + 0x69, 0x49, 0x6c, 0xe0, 0xf0, 0x30, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0xc8, 0x76, 0x11, 0x47, 0x1f, 0x01, 0x00, 0x00, } diff --git a/protos/ruby/lib/gitaly/gitaly_services_pb.rb b/protos/ruby/lib/gitaly/gitaly_services_pb.rb index 741bddbfc..ec707bc58 100644 --- a/protos/ruby/lib/gitaly/gitaly_services_pb.rb +++ b/protos/ruby/lib/gitaly/gitaly_services_pb.rb @@ -5,7 +5,7 @@ require 'grpc' require 'gitaly_pb' module Gitaly - module SmartHttp + module SmartHTTP # The Git 'smart HTTP' protocol class Service @@ -13,7 +13,7 @@ module Gitaly self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'gitaly.SmartHttp' + self.service_name = 'gitaly.SmartHTTP' # The response body for GET /info/refs?service=git-upload-pack rpc :InfoRefsUploadPack, InfoRefsRequest, stream(InfoRefsResponse) |