This article continues to analyze the chain paddle open source xdb module code.
conf module
conf contains the xdb node configuration template, including configuration instructions for data holding nodes and storage nodes.
config module
config realizes the definition and parsing function of node configuration structure, and reads the configuration information of related nodes through the configuration file.
errorx module
Error codes are defined and a variety of error handling functions are implemented.
peer module
Defines the public and private key configuration information related to node identity.
pkgs-module
The pkgs module defines some common capabilities required by this project
)
scripts
Contains scripts related to project one-click startup and quick trial
server module
Contains functions related to service startup, and the interface definition of xdb without identity node
storage module
Implemented file storage-related functions, supporting local disk storage and ipfs distributed storage.
testdata
Contains related scripts and configuration files for one-click startup of the project, which are called by the network_up.sh script in scripts.
The engine is the core module of xdb, which will be explained separately in the next article.