Sha256: bd7f8d3ceaab0c9b9dd46b37e0aecea7aac1477b0e787322915f7bc474b9deb3
Contents?: true
Size: 599 Bytes
Versions: 4
Compression:
Stored size: 599 Bytes
Contents
module Moleculer class Context attr_reader :request_id, :action, :params, :meta, :level, :timeout, :id def initialize(broker:, action:, params:, meta:, parent_id: nil, level: 1, timeout:, id: nil) @id = id ? id : SecureRandom.uuid @broker = broker @action = action @request_id = SecureRandom.uuid @parent_id = parent_id @params = params @meta = meta @level = level @timeout = timeout end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
moleculer-0.3.0 | lib/moleculer/context.rb |
moleculer-0.2.0 | lib/moleculer/context.rb |
moleculer-0.1.1 | lib/moleculer/context.rb |
moleculer-0.1.0 | lib/moleculer/context.rb |