mirror of
https://github.com/InsanusMokrassar/docs.git
synced 2026-11-21 19:32:54 +00:00
deploy: 6e7cf1cb0e
This commit is contained in:
1 parent
dd61ef849f
commit
32fff399de
48 files changed
+858
-2435
No files matched your search
@@ -561,7 +561,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -582,7 +582,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -295,14 +295,14 @@
|
||||
<li class="md-nav__item">
|
||||
<a class="md-nav__link" href="micro_utils/startup.html">
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="md-nav__item">
|
||||
<a class="md-nav__link" href="micro_utils/colors.html">
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
|
||||
|
||||
<title>Colors Maven Central - InMo Docs</title>
|
||||
<title>Colors - InMo Docs</title>
|
||||
|
||||
|
||||
|
||||
@@ -123,7 +123,7 @@
|
||||
<div class="md-header__topic" data-md-component="header-topic">
|
||||
<span class="md-ellipsis">
|
||||
|
||||
Colors Maven Central
|
||||
Colors
|
||||
|
||||
</span>
|
||||
</div>
|
||||
@@ -579,7 +579,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -609,7 +609,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
@@ -2331,7 +2331,8 @@
|
||||
|
||||
|
||||
|
||||
<h1 id="colors">Colors <a href="https://maven-badges.herokuapp.com/maven-central/dev.inmo/micro_utils.colors.common"><img alt="Maven Central" src="https://maven-badges.herokuapp.com/maven-central/dev.inmo/micro_utils.colors.common/badge.svg" /></a><a class="headerlink" href="#colors" title="Permanent link">¶</a></h1>
|
||||
<h1 id="colors">Colors<a class="headerlink" href="#colors" title="Permanent link">¶</a></h1>
|
||||
<p><a href="https://maven-badges.herokuapp.com/maven-central/dev.inmo/micro_utils.colors.common"><img alt="Maven Central" src="https://maven-badges.herokuapp.com/maven-central/dev.inmo/micro_utils.colors.common/badge.svg" /></a></p>
|
||||
<ul>
|
||||
<li><code>Group</code>: <code>dev.inmo</code></li>
|
||||
<li><code>ArtifactId</code>: <code>micro_utils.colors.common</code></li>
|
||||
@@ -2398,7 +2399,7 @@ contains unified color with HEXA format. It consumes <code>UInt</code> by defaul
|
||||
<nav class="md-footer__inner md-grid" aria-label="Footer" >
|
||||
|
||||
|
||||
<a href="startup.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Startup Maven Central">
|
||||
<a href="startup.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Startup">
|
||||
<div class="md-footer__button md-icon">
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11z"/></svg>
|
||||
@@ -2408,7 +2409,7 @@ contains unified color with HEXA format. It consumes <code>UInt</code> by defaul
|
||||
Previous
|
||||
</span>
|
||||
<div class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
@@ -568,7 +568,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -589,7 +589,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
@@ -579,7 +579,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -600,7 +600,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
@@ -267,14 +267,14 @@
|
||||
<li class="md-nav__item">
|
||||
<a class="md-nav__link" href="../startup.html">
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="md-nav__item">
|
||||
<a class="md-nav__link" href="../colors.html">
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
@@ -1022,7 +1022,7 @@ In difference with other repos, not all the methods of write key values repo req
|
||||
</main>
|
||||
<footer class="md-footer">
|
||||
<nav aria-label="Footer" class="md-footer__inner md-grid">
|
||||
<a aria-label="Previous: Colors Maven Central" class="md-footer__link md-footer__link--prev" href="../colors.html">
|
||||
<a aria-label="Previous: Colors" class="md-footer__link md-footer__link--prev" href="../colors.html">
|
||||
<div class="md-footer__button md-icon">
|
||||
<svg viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11z"></path></svg>
|
||||
</div>
|
||||
@@ -1031,7 +1031,7 @@ In difference with other repos, not all the methods of write key values repo req
|
||||
Previous
|
||||
</span>
|
||||
<div class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
@@ -579,7 +579,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -600,7 +600,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
@@ -637,7 +637,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -658,7 +658,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
@@ -2490,13 +2490,13 @@ example:</p>
|
||||
|
||||
|
||||
|
||||
<a href="startup.html" class="md-footer__link md-footer__link--next" aria-label="Next: Startup Maven Central">
|
||||
<a href="startup.html" class="md-footer__link md-footer__link--next" aria-label="Next: Startup">
|
||||
<div class="md-footer__title">
|
||||
<span class="md-footer__direction">
|
||||
Next
|
||||
</span>
|
||||
<div class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</div>
|
||||
</div>
|
||||
<div class="md-footer__button md-icon">
|
||||
|
||||
+749
-2331
File diff suppressed because it is too large.
Load diff
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
@@ -267,14 +267,14 @@
|
||||
<li class="md-nav__item">
|
||||
<a class="md-nav__link" href="../micro_utils/startup.html">
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="md-nav__item">
|
||||
<a class="md-nav__link" href="../micro_utils/colors.html">
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
+8
-4
@@ -267,14 +267,14 @@
|
||||
<li class="md-nav__item">
|
||||
<a class="md-nav__link" href="../micro_utils/startup.html">
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="md-nav__item">
|
||||
<a class="md-nav__link" href="../micro_utils/colors.html">
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
@@ -853,13 +853,17 @@
|
||||
<h2 id="plugin">Plugin<a class="headerlink" href="#plugin" title="Permanent link">¶</a></h2>
|
||||
<p>Plugin is a partially independent part of bot. Plugin have several parts:</p>
|
||||
<ul>
|
||||
<li><code>setupDI</code> - this method should be used to configure DI part of module</li>
|
||||
<li><code>setupBotPlugin</code> - method to start/configure your bot actions</li>
|
||||
<li><code>setupBotClient</code> - method to configure telegram bot in case you need it. Called synchronously when <code>TelegramBot</code>
|
||||
initializing in <code>single</code> in <code>setupDI</code> of <code>PlaguBot</code></li>
|
||||
<li><code>setupBotPlugin</code> - method to start/configure your <strong>bot</strong> actions. Called asynchronously in <code>buildBehaviourWithFSM</code>
|
||||
in <code>startPlugin</code> of <code>PlaguBot</code></li>
|
||||
</ul>
|
||||
<p>Plugin realization should be an <code>object</code> or <code>class</code> with empty constructor.</p>
|
||||
<h2 id="bot">Bot<a class="headerlink" href="#bot" title="Permanent link">¶</a></h2>
|
||||
<p>Most important of bot is <code>main</code> function (full reference: <code>dev.inmo.plagubot.AppKt</code>). It consumes one argument - path to config.</p>
|
||||
<p>Bot is initializing with the next algorithm:</p>
|
||||
<hr/>
|
||||
<p><strong>OLD</strong></p>
|
||||
<div class="mermaid">flowchart TB
|
||||
main["Main"]
|
||||
Join["Endless join bot work"]
|
||||
|
||||
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"config":{"lang":["en"],"separator":"[\\s\\-]+","pipeline":["stopWordFilter"]},"docs":[{"location":"index.html","title":"Insanus Mokrassar libraries home","text":"<p>Hello :) It is my libraries docs place and I glad to welcome you here. I hope, this documentation place will help you.</p>"},{"location":"index.html#projects","title":"Projects","text":"Common and independent TelegramBotAPI Plagubot"},{"location":"index.html#dependencies-graph","title":"Dependencies graph:","text":"%%{init: {\"flowchart\": {\"defaultRenderer\": \"elk\"}} }%% flowchart TB KSLog[KSLog] MicroUtils[MicroUtils] TelegramBotAPI[TelegramBotAPI] TelegramBotAPI-examples[TelegramBotAPI-examples ] PlaguBot[PlaguBot] TelegramBotAPILibraries[TelegramBotAPILibraries] PlaguBotPlugins[PlaguBotPlugins] PlaguBotExample[PlaguBotExample] BooruGrabberTelegramBot[BooruGrabberTelegramBot] SauceNaoTelegramBot[SauceNaoTelegramBot] PlaguPoster[PlaguPoster] PlaguBotSuggestionsBot[PlaguBotSuggestionsBot] TelegramBotTutorial[TelegramBotTutorial] Krontab[Krontab] KJSUiKit[KJSUiKit] SauceNaoAPI[SauceNaoAPI] Navigation[Navigation] TelegramBotAPI-bot_template[TelegramBotAPI-bot_template] PlaguBotPluginTemplate[PlaguBotPluginTemplate] PlaguBotBotTemplate[PlaguBotBotTemplate] MicroUtils --> KSLog TelegramBotAPI --> MicroUtils TelegramBotAPI-examples --> TelegramBotAPI PlaguBot --> TelegramBotAPI TelegramBotAPILibraries --> PlaguBot PlaguBotPlugins --> TelegramBotAPILibraries PlaguBotExample --> PlaguBotPlugins BooruGrabberTelegramBot --> TelegramBotAPI BooruGrabberTelegramBot --> Krontab SauceNaoTelegramBot --> TelegramBotAPI SauceNaoTelegramBot --> SauceNaoAPI TelegramBotTutorial --> PlaguBotPlugins PlaguBotSuggestionsBot --> PlaguBotPlugins PlaguPoster --> PlaguBotPlugins PlaguPoster --> Krontab SauceNaoAPI --> MicroUtils Navigation --> MicroUtils TelegramBotAPI-bot_template -.- TelegramBotAPI PlaguBotPluginTemplate -.- PlaguBot PlaguBotBotTemplate -.- PlaguBot"},{"location":"krontab/index.html","title":"krontab","text":"<p>Library was created to give opportunity to launch some things from time to time according to some schedule in runtime of applications.</p>"},{"location":"krontab/index.html#how-to-use","title":"How to use","text":"<p>Here you may find the builder for <code>Krontab</code> templates creation.</p> <p>There are several ways to configure and use this library:</p> <ul> <li>From some string</li> <li>From builder</li> </ul> <p>Anyway, to start some action from time to time you will need to use one of extensions/functions:</p> <pre><code>val kronScheduler = /* creating of KronScheduler instance */;\n\nkronScheduler.doWhile {\n // some action\n true // true - repeat on next time\n}\n</code></pre>"},{"location":"krontab/index.html#including-in-project","title":"Including in project","text":"<p>If you want to include <code>krontab</code> in your project, just add next line to your dependencies part:</p> <pre><code>implementation \"dev.inmo:krontab:$krontab_version\"\n</code></pre> <p>Next version is the latest currently for the library:</p> <p></p> <p>For old version of Gradle, instead of <code>implementation</code> word developers must use <code>compile</code>.</p>"},{"location":"krontab/index.html#config-from-string","title":"Config from string","text":"<p>Developers can use more simple way to configure repeat times is string. String configuring like a <code>crontab</code>, but with a little bit different meanings:</p> <pre><code>/--------------- Seconds\n| /------------- Minutes\n| | /----------- Hours\n| | | /--------- Days of months\n| | | | /------- Months\n| | | | | /----- (optional) Year\n| | | | | | /--- (optional) Timezone offset\n| | | | | | | / (optional) Week days\n* * * * * * 0o *w\n</code></pre> <p>It is different with original <code>crontab</code> syntax for the reason, that expected that in practice developers will use seconds and minutes with more probability than months (for example) or even years. In fact, developers will use something like:</p> <pre><code>doWhile(\"/5 * * * *\") {\n println(\"Called\")\n true // true - repeat on next time\n}\n</code></pre> <p>Another version:</p> <pre><code>doInfinity(\"/5 * * * *\") {\n println(\"Called\")\n}\n</code></pre> <p>Both of examples will print <code>Called</code> message every five seconds.</p>"},{"location":"krontab/index.html#config-via-builder","title":"Config via builder","text":"<p>Also, this library currently supports DSL for creating the same goals:</p> <pre><code>val kronScheduler = buildSchedule {\n seconds {\n from (0) every 5\n }\n}\nkronScheduler.doWhile {\n println(\"Called\")\n true // true - repeat on next time\n}\n</code></pre> <p>Or</p> <pre><code>val kronScheduler = buildSchedule {\n seconds {\n 0 every 5\n }\nLine truncated
|
||||
{"config":{"lang":["en"],"separator":"[\\s\\-]+","pipeline":["stopWordFilter"]},"docs":[{"location":"index.html","title":"Insanus Mokrassar libraries home","text":"<p>Hello :) It is my libraries docs place and I glad to welcome you here. I hope, this documentation place will help you.</p>"},{"location":"index.html#projects","title":"Projects","text":"Common and independent TelegramBotAPI Plagubot"},{"location":"index.html#dependencies-graph","title":"Dependencies graph:","text":"%%{init: {\"flowchart\": {\"defaultRenderer\": \"elk\"}} }%% flowchart TB KSLog[KSLog] MicroUtils[MicroUtils] TelegramBotAPI[TelegramBotAPI] TelegramBotAPI-examples[TelegramBotAPI-examples ] PlaguBot[PlaguBot] TelegramBotAPILibraries[TelegramBotAPILibraries] PlaguBotPlugins[PlaguBotPlugins] PlaguBotExample[PlaguBotExample] BooruGrabberTelegramBot[BooruGrabberTelegramBot] SauceNaoTelegramBot[SauceNaoTelegramBot] PlaguPoster[PlaguPoster] PlaguBotSuggestionsBot[PlaguBotSuggestionsBot] TelegramBotTutorial[TelegramBotTutorial] Krontab[Krontab] KJSUiKit[KJSUiKit] SauceNaoAPI[SauceNaoAPI] Navigation[Navigation] TelegramBotAPI-bot_template[TelegramBotAPI-bot_template] PlaguBotPluginTemplate[PlaguBotPluginTemplate] PlaguBotBotTemplate[PlaguBotBotTemplate] MicroUtils --> KSLog TelegramBotAPI --> MicroUtils TelegramBotAPI-examples --> TelegramBotAPI PlaguBot --> TelegramBotAPI TelegramBotAPILibraries --> PlaguBot PlaguBotPlugins --> TelegramBotAPILibraries PlaguBotExample --> PlaguBotPlugins BooruGrabberTelegramBot --> TelegramBotAPI BooruGrabberTelegramBot --> Krontab SauceNaoTelegramBot --> TelegramBotAPI SauceNaoTelegramBot --> SauceNaoAPI TelegramBotTutorial --> PlaguBotPlugins PlaguBotSuggestionsBot --> PlaguBotPlugins PlaguPoster --> PlaguBotPlugins PlaguPoster --> Krontab SauceNaoAPI --> MicroUtils Navigation --> MicroUtils TelegramBotAPI-bot_template -.- TelegramBotAPI PlaguBotPluginTemplate -.- PlaguBot PlaguBotBotTemplate -.- PlaguBot"},{"location":"krontab/index.html","title":"krontab","text":"<p>Library was created to give opportunity to launch some things from time to time according to some schedule in runtime of applications.</p>"},{"location":"krontab/index.html#how-to-use","title":"How to use","text":"<p>Here you may find the builder for <code>Krontab</code> templates creation.</p> <p>There are several ways to configure and use this library:</p> <ul> <li>From some string</li> <li>From builder</li> </ul> <p>Anyway, to start some action from time to time you will need to use one of extensions/functions:</p> <pre><code>val kronScheduler = /* creating of KronScheduler instance */;\n\nkronScheduler.doWhile {\n // some action\n true // true - repeat on next time\n}\n</code></pre>"},{"location":"krontab/index.html#including-in-project","title":"Including in project","text":"<p>If you want to include <code>krontab</code> in your project, just add next line to your dependencies part:</p> <pre><code>implementation \"dev.inmo:krontab:$krontab_version\"\n</code></pre> <p>Next version is the latest currently for the library:</p> <p></p> <p>For old version of Gradle, instead of <code>implementation</code> word developers must use <code>compile</code>.</p>"},{"location":"krontab/index.html#config-from-string","title":"Config from string","text":"<p>Developers can use more simple way to configure repeat times is string. String configuring like a <code>crontab</code>, but with a little bit different meanings:</p> <pre><code>/--------------- Seconds\n| /------------- Minutes\n| | /----------- Hours\n| | | /--------- Days of months\n| | | | /------- Months\n| | | | | /----- (optional) Year\n| | | | | | /--- (optional) Timezone offset\n| | | | | | | / (optional) Week days\n* * * * * * 0o *w\n</code></pre> <p>It is different with original <code>crontab</code> syntax for the reason, that expected that in practice developers will use seconds and minutes with more probability than months (for example) or even years. In fact, developers will use something like:</p> <pre><code>doWhile(\"/5 * * * *\") {\n println(\"Called\")\n true // true - repeat on next time\n}\n</code></pre> <p>Another version:</p> <pre><code>doInfinity(\"/5 * * * *\") {\n println(\"Called\")\n}\n</code></pre> <p>Both of examples will print <code>Called</code> message every five seconds.</p>"},{"location":"krontab/index.html#config-via-builder","title":"Config via builder","text":"<p>Also, this library currently supports DSL for creating the same goals:</p> <pre><code>val kronScheduler = buildSchedule {\n seconds {\n from (0) every 5\n }\n}\nkronScheduler.doWhile {\n println(\"Called\")\n true // true - repeat on next time\n}\n</code></pre> <p>Or</p> <pre><code>val kronScheduler = buildSchedule {\n seconds {\n 0 every 5\n }\nLine truncated
|
||||
+2
-2
@@ -572,7 +572,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -593,7 +593,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Startup Maven Central
|
||||
Startup
|
||||
</span>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
Colors Maven Central
|
||||
Colors
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user