Module: AwsSqsMoniter

Defined in:
lib/aws_sqs_moniter.rb,
lib/aws_sqs_moniter/logging.rb,
lib/aws_sqs_moniter/railtie.rb,
lib/aws_sqs_moniter/version.rb,
lib/aws_sqs_moniter/aws/arns.rb,
lib/aws_sqs_moniter/aws/builder.rb,
lib/aws_sqs_moniter/configuration.rb,
lib/aws_sqs_moniter/typed_message.rb,
lib/aws_sqs_moniter/dead_letters/worker.rb,
lib/aws_sqs_moniter/dead_letters/retrier.rb,
lib/aws_sqs_moniter/aws/environmental_name.rb,
lib/aws_sqs_moniter/aws/builder/queue_builder.rb,
lib/aws_sqs_moniter/aws/builder/topic_builder.rb,
lib/aws_sqs_moniter/configuration/validatable.rb,
lib/aws_sqs_moniter/middleware/server/airbrake.rb,
lib/generators/aws_sqs_moniter/install_generator.rb,
lib/aws_sqs_moniter/aws/builder/subscription_builder.rb,
lib/aws_sqs_moniter/configuration/queue_configuration.rb,
lib/aws_sqs_moniter/aws/builder/application_policy_builder.rb,
lib/aws_sqs_moniter/middleware/server/active_record/retrier.rb,
lib/aws_sqs_moniter/worker_registries/typed_message_registry.rb,
lib/aws_sqs_moniter/configuration/redrive_policy_configuration.rb,
lib/aws_sqs_moniter/middleware/server/active_record/idempotence.rb,
lib/aws_sqs_moniter/middleware/server/active_record/transaction.rb,
lib/aws_sqs_moniter/middleware/server/active_record/connection_pool.rb

Defined Under Namespace

Modules: Aws, DeadLetters, Logging, Middleware, WorkerRegistries Classes: Configuration, InstallGenerator, Railtie, TypedMessage

Constant Summary collapse

VERSION =
'0.0.6'

Class Method Summary collapse

Class Method Details

.configurationObject



16
17
18
19
# File 'lib/aws_sqs_moniter.rb', line 16

def configuration
  fail 'You must call AwsSqsMoniter .configure in an initializer.' unless @config
  @config
end

.configureObject



9
10
11
12
13
14
# File 'lib/aws_sqs_moniter.rb', line 9

def configure
  @config ||= Configuration.new.tap do |config|
    yield config
    config.validate!
  end
end

.sns_clientObject



21
22
23
# File 'lib/aws_sqs_moniter.rb', line 21

def sns_client
  ::Aws::SNS::Client.new configuration.sns_options
end

.sqs_clientObject



25
26
27
# File 'lib/aws_sqs_moniter.rb', line 25

def sqs_client
  ::Aws::SQS::Client.new configuration.sqs_options
end