UNPKG

kibana-123

Version:

Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elastic

20 lines (16 loc) 534 B
import FetchProvider from '../fetch'; import LooperProvider from './_looper'; import DocStrategyProvider from '../fetch/strategy/doc_admin'; export default function DocLooperService(Private) { const fetch = Private(FetchProvider); const Looper = Private(LooperProvider); const DocStrategy = Private(DocStrategyProvider); /** * The Looper which will manage the doc fetch interval * @type {Looper} */ const docLooper = new Looper(1500, function () { fetch.fetchQueued(DocStrategy); }); return docLooper; }