Security News
NVD Backlog Tops 20,000 CVEs Awaiting Analysis as NIST Prepares System Updates
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
virtdb-connector
Advanced tools
Module for connecting node.js based modules to VirtDB.
npm install virtdb-connector
zmq = require 'zmq'
VirtDBConnector = require 'virtdb-connector'
Const = VirtDBConnector.Constants
proto_meta = (require 'virtdb-proto').meta_data
processMessages = (data) -> # do something great with messages arrived
VirtDBConnector.connect(@name, connectionString)
VirtDBConnector.setupEndpoint (onBound) ->
socket = zmq.socket Const.ZMQ_REP
socket.on "message", (request) ->
try
data = proto_meta.parse request, "virtdb.interface.pb.MetaDataRequest"
processMessages data
catch ex
log.error "Error happened in message receiver: ", V_(ex)
socket.send "err"
socket.bind VirtDBConnector.getConnectionString(), onBound socket, Const.META_DATA, Const.ZMQ_REP
Connects to the VirtDB system.
Returns the own IP address of the current component.
Calls the given callback when an endpoint with the requested service_type and connection_type is published from the Endpoint Service.
function callback(endpoint_name, address, service_type, connection_type)
Where address and connection_type are not always set. Null address means endpoint is deleted.Set up an endpoint. An endpoint is a service with a given service_type and connection_type that other componenets can connect to. For a possible set of service/connection pairs see the [virtdb-proto](https://github.com/starschema/virtdb-proto) project.
function protocol_call(onBound)
function onBound(socket, svcType, zmqType)
Callback that has to be called when the ZeroMQ endpoint is set up. It reports the created endpoint to the VirtDB Endpoint Service so that other components get to know about this new endpoint. Subscribe for messages of a given type.
function callback(channel, message)
Called when messages arrive on the given subscription.Makes the component configurable through the VirtDB config protocol. For a detailed protocol description see the [virtdb-proto](https://github.com/starschema/virtdb-proto) project.
function callback(config)
Called when configuration messages arrive.Sends a message to the endpoint with the given name and svcType on a ZMQ REQ socket. When the reply arrives the given callback is called. The parsing and serialization of the message with Google Protocol Buffers is the responsibility of the caller.
Sets up a server that can accept requests on a ZMQ REP socket.
Sets up a server that can accept requests on a ZMQ ROUTER socket.
More info at: http://www.virtdb.com
FAQs
Module for connecting a node.js component to the VirtDB system
The npm package virtdb-connector receives a total of 4 weekly downloads. As such, virtdb-connector popularity was classified as not popular.
We found that virtdb-connector demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.