Module: FastMcpPubsub

Defined in:
lib/fast_mcp_pubsub.rb,
lib/fast_mcp_pubsub/railtie.rb,
lib/fast_mcp_pubsub/service.rb,
lib/fast_mcp_pubsub/version.rb,
lib/fast_mcp_pubsub/configuration.rb,
lib/fast_mcp_pubsub/rack_transport_patch.rb

Overview

Monkey patch for FastMcp::Transports::RackTransport Adds PostgreSQL PubSub support for cluster mode

Defined Under Namespace

Modules: RackTransportPatch Classes: Configuration, Error, Railtie, Service

Constant Summary collapse

VERSION =
"1.1.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



14
15
16
# File 'lib/fast_mcp_pubsub.rb', line 14

def configuration
  @configuration
end

Class Method Details

.configObject



22
23
24
# File 'lib/fast_mcp_pubsub.rb', line 22

def self.config
  self.configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



17
18
19
20
# File 'lib/fast_mcp_pubsub.rb', line 17

def self.configure
  self.configuration ||= Configuration.new
  yield(configuration)
end

.loggerObject

Simple logging helper - uses Rails.logger since this gem is Rails-specific



27
28
29
# File 'lib/fast_mcp_pubsub.rb', line 27

def self.logger
  Rails.logger
end