@netcom/consilium-dei

0.1.1 • Public • Published

Consilium-Dei

This package can be used as describer or configuration of connecting of nodes with which can be performed operations.

Install

npm install consilium-dei

Example of usage

const objConfig = [
    {
        id: 1,
        hostname: '',
        port: 3443,
        scheme: [
            {
                type: 'endpoint',
                point: 2,
            },
            {
                type: 'endpoint',
                point: 3,
            },
        ]
    },
    {
        id: 2,
        hostname: '',
        port: 3443,
        scheme: [
            {
                type: 'endpoint',
                point: 1
            },
        ]
    },
    {
        id: 3,
        hostname: '',
        port: 3443,
        scheme: [
            {
                type: 'endpoint',
                point: 1
            },
        ]
    }
];

const cfg = new Configuration(objConfig, 1);

const fce = (scheme, destPoint) => {

    console.log(scheme, destPoint);

};

cfg.forSelectedPoint(fce, 2);

Package Sidebar

Install

npm i @netcom/consilium-dei

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

8.2 kB

Total Files

9

Last publish

Collaborators

  • jironett