Skip to content

wearebear80/consul-watcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

consul-watcher

Demo consul client

Usage

import ConsulClient from 'consul'

const exampleConfig = {
    host: 0.0.0.0,
    port: 8000
}

const Consul = new ConsulClient(exampleConfig)

// "exampleService" - name of your service in consul
const ConnectionParams = await Consul.getConnectionParams('exampleService')

console.log(ConnectionParams) // { host: example.service.com, post: 8000 }

About

Demo consul client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published