Module: Moleculer::Packets
- Defined in:
- lib/moleculer/packets.rb,
lib/moleculer/packets/req.rb,
lib/moleculer/packets/res.rb,
lib/moleculer/packets/base.rb,
lib/moleculer/packets/info.rb,
lib/moleculer/packets/event.rb,
lib/moleculer/packets/discover.rb,
lib/moleculer/packets/heartbeat.rb,
lib/moleculer/packets/disconnect.rb
Defined Under Namespace
Classes: Base, Disconnect, Discover, Event, Heartbeat, Info, Req, Res
Constant Summary collapse
- TYPES =
{ Discover.packet_name => Discover, Info.packet_name => Info, Req.packet_name => Req, Res.packet_name => Res, Heartbeat.packet_name => Heartbeat, Event.packet_name => Event, Disconnect.packet_name => Disconnect, }.freeze
Class Method Summary collapse
Class Method Details
.for(type) ⇒ Object
21 22 23 |
# File 'lib/moleculer/packets.rb', line 21 def self.for(type) TYPES[type.to_s.upcase] end |