Sha256: 38ebc2011df43ade5dc3f0731769985d633b6717ce46bc28df4ffece9c818d04

Contents?: true

Size: 605 Bytes

Versions: 3

Compression:

Stored size: 605 Bytes

Contents

# frozen_string_literal: true

require_relative "base"

module Sbmt
  module Pact
    module Provider
      module PactConfig
        class Grpc < Base
          attr_reader :grpc_port, :grpc_services, :grpc_server

          def initialize(provider_name:, opts: {})
            super

            @grpc_port = opts[:grpc_port] || 3009
            @grpc_services = opts[:grpc_services] || []
          end

          def filter_type
            PACT_BROKER_FILTER_TYPE_GRPC
          end

          def new_verifier
            GrpcVerifier.new(self)
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sbmt-pact-0.12.2 lib/sbmt/pact/provider/pact_config/grpc.rb
sbmt-pact-0.12.1 lib/sbmt/pact/provider/pact_config/grpc.rb
sbmt-pact-0.12.0 lib/sbmt/pact/provider/pact_config/grpc.rb