Minion::Backend::API - API Rest backend
# simple use Minion::Backend::API; my $backend = Minion::Backend::API->new('https://my-api.com'); # using with your own Mojo::UserAgent use Mojo::UserAgent; use Minion::Backend::API; my $ua = Mojo::UserAgent->new; my $backend = Minion::Backend::API->new('https://my-api.com', $ua);
Minion::Backend::API is a backend for Minion based on Mojo::UserAgent. This module need be used together with the module Mojolicious::Plugin::Minion::API, access it to see manual.
Minion::Backend::API inherits all attributes from Minion::Backend and implements the following new ones.
my $url = $backend->url; $backend = $backend->url('https://my-api.com');
my $ua = $backend->ua; $backend = $backend->ua(Mojo::UserAgent->new);
$backend->slow(0.2);
Slows down each request of dequeue. Default is 0.5 (half a second).
Minion::Backend::Pg
Mojolicious::Plugin::Minion::API, Mojo::UserAgent, Minion, Mojolicious::Guides, https://mojolicious.org.
Lucas Tiago de Moraes lucastiagodemoraes@gmail.com
lucastiagodemoraes@gmail.com
This software is copyright (c) 2020 by Lucas Tiago de Moraes.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Minion::Backend::API, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Minion::Backend::API
CPAN shell
perl -MCPAN -e shell install Minion::Backend::API
For more information on module installation, please visit the detailed CPAN module installation guide.