Bot-ChatBots-Minion

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN


    minion

      set "minion". Do not confuse this with Minion below!

    Minion

      load the Minion plugin in the $app and use it for setting "minion".
      This option points to an array reference that contains the
      configuration for instantiating the Minion plugin

    name

      set "name"

    prefix

      set "prefix"

    typename

      set "typename"

 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 %args MUST contain a downstream parameter (or its lower-precedence
    alias processor) with a tube-compliant sub reference or anything that
    can be transformed into one via "pipeline" in Bot::ChatBots::Utils,
    which will be invoked inside the Minion worker.

    The following keys are recognised in %args:

    downstream

      mandatory parameter (unless processor is provided) carrying a tube or
      tubifiable definition via Bot::ChatBots::Utils/pipeline (the latter
      case assumes that you also have Data::Tubes installed);

    name

      set an alternative name for enqueuing/dequeuing stuff via Minion,
      defaults to "name"

    prefix

      set a prefix for automatic transformation of module names via
      Bot::ChatBots::Utils/pipeline, defaults to what set for "prefix"
      (i.e. Bot::ChatBots);

    processor

      low-priority alias for downstream, see above.

BUGS AND LIMITATIONS

    Report bugs through GitHub (patches welcome).

SEE ALSO

    Bot::ChatBots, Bot::ChatBots::Telegram.

AUTHOR

    Flavio Poletti <polettix@cpan.org>

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.



( run in 0.523 second using v1.01-cache-2.11-cpan-39bf76dae61 )