@mesos-playground/seneca-proxies

1.2.0 • Public • Published

seneca-proxies

Seneca proxies for testing mesos service discovery.

MathProxy

Example

const proxies = require('@mesos-playground/seneca-proxies');

var math = new proxies.MathProxy({
    host: 'mathService.marathon.l4lb.dcos.directory',
    port: 18650
});

math.sum(1, 2).then(sum=>{
    console.log("Sum:", sum);
});

UuidProxy

Example

const proxies = require('@mesos-playground/seneca-proxies');

var uuid = new proxies.UuidProxy({
    host: 'uuidService.marathon.l4lb.dcos.directory',
    port: 18650
});

uuid.generate().then(id=>{
    console.log("uuid:", id);
});

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.2.00latest

Version History

VersionDownloads (Last 7 Days)Published
1.2.00
1.1.00
1.0.00

Package Sidebar

Install

npm i @mesos-playground/seneca-proxies

Weekly Downloads

0

Version

1.2.0

License

MIT

Last publish

Collaborators

  • infrabill
  • en0