Module: SharedBroker::SchemaRegistry

Defined in:
lib/shared_broker/schema_registry.rb,
lib/shared_broker/schema_registry/providers/http.rb,
lib/shared_broker/schema_registry/providers/local.rb

Defined Under Namespace

Modules: Providers

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.providerObject

Returns the value of attribute provider.



6
7
8
# File 'lib/shared_broker/schema_registry.rb', line 6

def provider
  @provider
end

Class Method Details

.clear_cacheObject



14
15
16
17
18
# File 'lib/shared_broker/schema_registry.rb', line 14

def self.clear_cache
  return unless provider.respond_to?(:clear_cache)

  provider.clear_cache
end

.validate!(topic, payload) ⇒ Object



9
10
11
12
# File 'lib/shared_broker/schema_registry.rb', line 9

def self.validate!(topic, payload)
  resolved_provider = provider || default_provider
  resolved_provider.validate!(topic, payload)
end