JSPM

  • Created
  • Published
  • Downloads 27
  • Score
    100M100P100Q69268F
  • License BSD-2-Clause

kronos service to integrate with consul

Package Exports

  • kronos-service-consul

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (kronos-service-consul) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

npm Greenkeeper semantic-release styled with prettier Build Status codecov.io Coverage Status Known Vulnerabilities GitHub Issues Dependency Status devDependency Status docs downloads Commitizen friendly

consul support for kronos

consul: - as a config provider - for service discovery

API

Table of Contents

ServiceConsul

Extends Service

service building a bridge to consul

Parameters

  • config
  • owner

autostart

Start immediate

Returns boolean true

_start

Register the kronos service in consul

Returns Promise that fullfills on succesfull startup

_stop

Deregister the service from consul

Returns Promise that fullfills when the deregistering has finished

update

Update service definition in consul

Parameters

  • delay number time to wait before doing the unregister/register action

name

Returns string 'consul'

install

With npm do:

npm install kronos-service-consul

license

BSD-2-Clause