Kronos-Integration/kronos-service-manager

View on GitHub
README.md

Summary

Maintainability
Test Coverage
[![npm](https://img.shields.io/npm/v/kronos-service-manager.svg)](https://www.npmjs.com/package/kronos-service-manager)
[![Greenkeeper](https://badges.greenkeeper.io/Kronos-Integration/kronos-service-manager.svg)](https://greenkeeper.io/)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/Kronos-Integration/kronos-service-manager)
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
[![Build Status](https://secure.travis-ci.org/Kronos-Integration/kronos-service-manager.png)](http://travis-ci.org/Kronos-Integration/kronos-service-manager)
[![codecov.io](http://codecov.io/github/Kronos-Integration/kronos-service-manager/coverage.svg?branch=master)](http://codecov.io/github/Kronos-Integration/kronos-service-manager?branch=master)
[![Coverage Status](https://coveralls.io/repos/Kronos-Integration/kronos-service-manager/badge.svg)](https://coveralls.io/r/Kronos-Integration/kronos-service-manager)
[![Known Vulnerabilities](https://snyk.io/test/github/Kronos-Integration/kronos-service-manager/badge.svg)](https://snyk.io/test/github/Kronos-Integration/kronos-service-manager)
[![GitHub Issues](https://img.shields.io/github/issues/Kronos-Integration/kronos-service-manager.svg?style=flat-square)](https://github.com/Kronos-Integration/kronos-service-manager/issues)
[![Dependency Status](https://david-dm.org/Kronos-Integration/kronos-service-manager.svg)](https://david-dm.org/Kronos-Integration/kronos-service-manager)
[![devDependency Status](https://david-dm.org/Kronos-Integration/kronos-service-manager/dev-status.svg)](https://david-dm.org/Kronos-Integration/kronos-service-manager#info=devDependencies)
[![docs](http://inch-ci.org/github/Kronos-Integration/kronos-service-manager.svg?branch=master)](http://inch-ci.org/github/Kronos-Integration/kronos-service-manager)
[![downloads](http://img.shields.io/npm/dm/kronos-service-manager.svg?style=flat-square)](https://npmjs.org/package/kronos-service-manager)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)

# kronos-service-manager

kronos service manger

Browse available [services](https://www.npmjs.com/browse/keyword/kronos-service),
[interceptors](https://www.npmjs.com/browse/keyword/kronos-interceptor)
and [steps](https://www.npmjs.com/browse/keyword/kronos-step).

# license

BSD-2-Clause

# API

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

### Table of Contents

-   [ServiceManager](#servicemanager)
    -   [name](#name)
-   [manager](#manager)

## ServiceManager

**Extends FlowSupportMixin(ServiceProviderMixin(FlowProviderMixin(Service)))**

Convenianve class ass aggregation of Service Step Flow Interceptor provider

**Parameters**

-   `config`  

### name

Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 'kronos'

## manager

creates a kronos service manager.

**Parameters**

-   `config` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)>** separated for each service
-   `modules` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>?** modules to register with registerWithManager (optional, default `[]`)

Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)** a promise with the service manager as its value

# install

With [npm](http://npmjs.org) do:

```shell
npm install kronos-service-manager
```

# license

BSD-2-Clause