Skip to content

mesos-playground/seneca-proxies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Seneca proxies for testing mesos service discovery.

Resources

License

Stars

Watchers

Forks

Packages

No packages published