Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
init_module.cpp
Go to the documentation of this file.
1
#include "
barretenberg/nodejs_module/lmdb_store/lmdb_store_wrapper.hpp
"
2
#include "
barretenberg/nodejs_module/msgpack_client/msgpack_client_async.hpp
"
3
#include "
barretenberg/nodejs_module/msgpack_client/msgpack_client_wrapper.hpp
"
4
#include "napi.h"
5
6
Napi::Object
Init
(Napi::Env env, Napi::Object exports)
7
{
8
exports.Set(Napi::String::New(env,
"LMDBStore"
),
bb::nodejs::lmdb_store::LMDBStoreWrapper::get_class
(env));
9
exports.Set(Napi::String::New(env,
"MsgpackClient"
),
10
bb::nodejs::msgpack_client::MsgpackClientWrapper::get_class
(env));
11
exports.Set(Napi::String::New(env,
"MsgpackClientAsync"
),
12
bb::nodejs::msgpack_client::MsgpackClientAsync::get_class
(env));
13
return
exports;
14
}
15
16
// NOLINTNEXTLINE
17
NODE_API_MODULE(addon,
Init
)
bb::nodejs::lmdb_store::LMDBStoreWrapper::get_class
static Napi::Function get_class(Napi::Env env)
Definition
lmdb_store_wrapper.cpp:87
bb::nodejs::msgpack_client::MsgpackClientAsync::get_class
static Napi::Function get_class(Napi::Env env)
Definition
msgpack_client_async.cpp:165
bb::nodejs::msgpack_client::MsgpackClientWrapper::get_class
static Napi::Function get_class(Napi::Env env)
Definition
msgpack_client_wrapper.cpp:91
Init
Napi::Object Init(Napi::Env env, Napi::Object exports)
Definition
init_module.cpp:6
lmdb_store_wrapper.hpp
msgpack_client_async.hpp
msgpack_client_wrapper.hpp
src
barretenberg
nodejs_module
init_module.cpp
Generated by
1.9.8