module EventStoreClient

Constants

VERSION

Public Class Methods

adapter() click to toggle source
# File lib/event_store_client/configuration.rb, line 45
def self.adapter
  @adapter =
    case config.adapter
    when :http
      require 'event_store_client/adapters/http'
      HTTP::Client.new
    when :grpc
      require 'event_store_client/adapters/grpc'
      GRPC::Client.new
    else
      require 'event_store_client/adapters/in_memory'
      InMemory.new(
        mapper: config.mapper, per_page: config.per_page
      )
    end
end
configure() { |config| ... } click to toggle source
# File lib/event_store_client/configuration.rb, line 41
def self.configure
  yield(config) if block_given?
end