0.1.1 • Published 5 years ago

@netcom/consilium-dei v0.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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

5 years ago

0.1.0

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.1

5 years ago