Sha256: 4f9bfdac9650cf9d14df58f24725825e8577f3df574ea8abea99f07368aec578

Contents?: true

Size: 1.81 KB

Versions: 113

Compression:

Stored size: 1.81 KB

Contents

# Generated by the protocol buffer compiler.  DO NOT EDIT!
# Source: hook.proto for package 'gitaly'

require 'grpc'
require 'hook_pb'

module Gitaly
  module HookService
    # HookService is a service which provides the implementation of a subset of
    # Git hooks. These are typically invoked via the `gitaly-hooks` binary to
    # ensure that the actual hook logic is executed in the context of the server.
    class Service

      include ::GRPC::GenericService

      self.marshal_class_method = :encode
      self.unmarshal_class_method = :decode
      self.service_name = 'gitaly.HookService'

      # PreReceiveHook ...
      rpc :PreReceiveHook, stream(::Gitaly::PreReceiveHookRequest), stream(::Gitaly::PreReceiveHookResponse)
      # PostReceiveHook ...
      rpc :PostReceiveHook, stream(::Gitaly::PostReceiveHookRequest), stream(::Gitaly::PostReceiveHookResponse)
      # UpdateHook ...
      rpc :UpdateHook, ::Gitaly::UpdateHookRequest, stream(::Gitaly::UpdateHookResponse)
      # ReferenceTransactionHook ...
      rpc :ReferenceTransactionHook, stream(::Gitaly::ReferenceTransactionHookRequest), stream(::Gitaly::ReferenceTransactionHookResponse)
      # PackObjectsHookWithSidechannel is an optimized version of PackObjectsHook that uses
      # a unix socket side channel.
      rpc :PackObjectsHookWithSidechannel, ::Gitaly::PackObjectsHookWithSidechannelRequest, ::Gitaly::PackObjectsHookWithSidechannelResponse
      # ProcReceiveHook is a hook invoked by git-receive-pack(1) [1]. This hook is responsible
      # for updating the relevant references and reporting the results back to receive-pack.
      #
      # [1]: https://git-scm.com/docs/githooks#proc-receive
      rpc :ProcReceiveHook, stream(::Gitaly::ProcReceiveHookRequest), stream(::Gitaly::ProcReceiveHookResponse)
    end

    Stub = Service.rpc_stub_class
  end
end

Version data entries

113 entries across 113 versions & 3 rubygems

Version Path
gitaly-17.6.0 ruby/proto/gitaly/hook_services_pb.rb
gitaly-17.6.0.pre.rc42 ruby/proto/gitaly/hook_services_pb.rb
gitaly-17.3.7 ruby/proto/gitaly/hook_services_pb.rb
gitaly-17.4.4 ruby/proto/gitaly/hook_services_pb.rb
gitaly-17.5.2 ruby/proto/gitaly/hook_services_pb.rb
gitaly-17.3.6 ruby/proto/gitaly/hook_services_pb.rb
gitaly-17.4.3 ruby/proto/gitaly/hook_services_pb.rb
gitaly-17.5.1 ruby/proto/gitaly/hook_services_pb.rb
gitaly-17.5.0 ruby/proto/gitaly/hook_services_pb.rb
gitaly-17.5.0.pre.rc42 ruby/proto/gitaly/hook_services_pb.rb
gitaly-17.5.0.pre.rc1 ruby/proto/gitaly/hook_services_pb.rb
gitaly-17.2.9 ruby/proto/gitaly/hook_services_pb.rb
gitaly-17.3.5 ruby/proto/gitaly/hook_services_pb.rb
gitaly-17.4.2 ruby/proto/gitaly/hook_services_pb.rb
gitaly-17.2.8 ruby/proto/gitaly/hook_services_pb.rb
gitaly-17.3.4 ruby/proto/gitaly/hook_services_pb.rb
gitaly-17.4.1 ruby/proto/gitaly/hook_services_pb.rb
gitaly-17.4.1.pre.rc10 ruby/proto/gitaly/hook_services_pb.rb
gitaly-17.3.4.pre.rc50 ruby/proto/gitaly/hook_services_pb.rb
gitaly-17.2.8.pre.rc50 ruby/proto/gitaly/hook_services_pb.rb