Sha256: 90bf9a2402516c726dd3badc1d143d0c8f9e7e6e987b67327460437e2c3ac576
Contents?: true
Size: 652 Bytes
Versions: 4
Compression:
Stored size: 652 Bytes
Contents
require_relative "packets/disconnect" require_relative "packets/discover" require_relative "packets/event" require_relative "packets/heartbeat" require_relative "packets/info" require_relative "packets/req" require_relative "packets/res" module Moleculer module Packets 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 def self.for(type) TYPES[type.to_s.upcase] end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
moleculer-0.3.0 | lib/moleculer/packets.rb |
moleculer-0.2.0 | lib/moleculer/packets.rb |
moleculer-0.1.1 | lib/moleculer/packets.rb |
moleculer-0.1.0 | lib/moleculer/packets.rb |