ruby/lib/gitaly/gitaly_services_pb.rb in gitaly-0.2.1 vs ruby/lib/gitaly/gitaly_services_pb.rb in gitaly-0.3.0

- old
+ new

@@ -3,37 +3,66 @@ require 'grpc' require 'gitaly_pb' module Gitaly - module SmartHTTP - # The Git 'smart HTTP' protocol + module Notifications class Service include GRPC::GenericService self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'gitaly.SmartHTTP' + self.service_name = 'gitaly.Notifications' - # The response body for GET /info/refs?service=git-upload-pack - rpc :InfoRefsUploadPack, InfoRefsRequest, stream(InfoRefsResponse) - # The response body for GET /info/refs?service=git-receive-pack - rpc :InfoRefsReceivePack, InfoRefsRequest, stream(InfoRefsResponse) + rpc :PostReceive, PostReceiveRequest, PostReceiveResponse end Stub = Service.rpc_stub_class end - module Notifications + module Ref class Service include GRPC::GenericService self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'gitaly.Notifications' + self.service_name = 'gitaly.Ref' - rpc :PostReceive, PostReceiveRequest, PostReceiveResponse + rpc :FindDefaultBranchName, FindDefaultBranchNameRequest, FindDefaultBranchNameResponse + rpc :FindAllBranchNames, FindAllBranchNamesRequest, stream(FindAllBranchNamesResponse) + rpc :FindAllTagNames, FindAllTagNamesRequest, stream(FindAllTagNamesResponse) + # Find a Ref matching the given constraints. Response may be empty. + rpc :FindRefName, FindRefNameRequest, FindRefNameResponse + end + + Stub = Service.rpc_stub_class + end + module Diff + class Service + + include GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'gitaly.Diff' + + # Returns stream of CommitDiffResponse: 1 per changed file + rpc :CommitDiff, CommitDiffRequest, stream(CommitDiffResponse) + end + + Stub = Service.rpc_stub_class + end + module Commit + class Service + + include GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'gitaly.Commit' + + rpc :CommitIsAncestor, CommitIsAncestorRequest, CommitIsAncestorResponse end Stub = Service.rpc_stub_class end end