class Sidekiq::Encryptor::Client
Public Instance Methods
call(worker, msg, queue, redis_pool) { || ... }
click to toggle source
# File lib/sidekiq/encryptor.rb, line 79 def call(worker, msg, queue, redis_pool) return yield unless enabled? msg['args'] = payload(msg['args']) yield end
Private Instance Methods
encrypt(input)
click to toggle source
# File lib/sidekiq/encryptor.rb, line 95 def encrypt(input) @adapter.encrypt(@key, Sidekiq.dump_json(input)) end
payload(input)
click to toggle source
# File lib/sidekiq/encryptor.rb, line 87 def payload(input) [ 'Sidekiq::Encryptor', Sidekiq::Encryptor::PROTOCOL_VERSION, encrypt(input) ] end