1.2.0 • Published 7 years ago

@mesos-playground/seneca-proxies v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 years ago

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);
});
1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago