Bot-ChatBots-Minion
view release on metacpan or search on metacpan
lib/Bot/ChatBots/Minion.pod view on Meta::CPAN
load the L<Minion> plugin in the C<$app> and use it for setting L</minion>.
This option points to an array reference that contains the configuration for
instantiating the Minion plugin
=item C<name>
set L</name>
=item C<prefix>
set L</prefix>
=item C<typename>
set L</typename>
=back
=head2 B<< wrapper >>
my $sub_reference = $obj->wrapper(%args); # OR
$sub_reference = $obj->wrapper(\%args);
Wrap a tube (or a sequence that can be transformed into a tube) in
a delayed execution via Minion. It returns a sub reference that is a valid
tube where records can be sent to a Minion worker.
The C<%args> MUST contain a C<downstream> parameter (or its
lower-precedence alias C<processor>) with a tube-compliant sub reference
or anything that can be transformed into one via
L<Bot::ChatBots::Utils/pipeline>, which will be invoked inside the Minion
worker.
The following keys are recognised in C<%args>:
=over
=item C<downstream>
mandatory parameter (unless C<processor> is provided) carrying a tube or
I<tubifiable> definition via C<Bot::ChatBots::Utils/pipeline> (the latter
case assumes that you also have L<Data::Tubes> installed);
=item C<name>
set an alternative name for enqueuing/dequeuing stuff via Minion, defaults
to L</name>
=item C<prefix>
set a prefix for automatic transformation of module names via
C<Bot::ChatBots::Utils/pipeline>, defaults to what set for L</prefix>
(i.e. C<Bot::ChatBots>);
=item C<processor>
low-priority alias for C<downstream>, see above.
=back
=head1 BUGS AND LIMITATIONS
Report bugs through GitHub (patches welcome).
=head1 SEE ALSO
L<Bot::ChatBots>, L<Bot::ChatBots::Telegram>.
=head1 AUTHOR
Flavio Poletti <polettix@cpan.org>
=head1 COPYRIGHT AND LICENSE
Copyright (C) 2016 by Flavio Poletti <polettix@cpan.org>
This module is free software. You can redistribute it and/or modify it
under the terms of the Artistic License 2.0.
This program is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of
merchantability or fitness for a particular purpose.
=cut
( run in 0.835 second using v1.01-cache-2.11-cpan-39bf76dae61 )