Sha256: a0bff3f6271dfd257a563ed73db7e805a6b73afcdf557560c95a97132421d0f9

Contents?: true

Size: 987 Bytes

Versions: 4

Compression:

Stored size: 987 Bytes

Contents

# frozen_string_literal: true

module Wayfarer
  module Config
    Networking = Struct.new(agent: {
                              env_key: "WAYFARER_NETWORK_AGENT",
                              type: Symbol,
                              default: :http
                            },
                            pool_size: {
                              env_key: "WAYFARER_NETWORK_POOL_SIZE",
                              type: Integer,
                              default: 1
                            },
                            pool_timeout: {
                              env_key: "WAYFARER_NETWORK_POOL_TIMEOUT",
                              type: Integer,
                              default: 10
                            },
                            http_headers: {
                              env_key: "WAYFARER_NETWORK_HTTP_HEADERS",
                              type: Hash,
                              default: {}
                            })
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wayfarer-0.4.5 lib/wayfarer/config/networking.rb
wayfarer-0.4.4 lib/wayfarer/config/networking.rb
wayfarer-0.4.3 lib/wayfarer/config/networking.rb
wayfarer-0.4.2 lib/wayfarer/config/networking.rb