Skip to main content
Version: Next 🚧

libstorage C API

Excerpt of the unreleased (Next) C API (in the real site this page is a mirror of library/README.md at the pinned revision).

// Create a new node instance from a JSON config string.
const char* storage_new(const char* config_json);

// Start the node. Returns NULL on success, an error string otherwise.
const char* storage_start(void* ctx);

// Stop the node.
const char* storage_stop(void* ctx);

// NEW in 0.4.1: fetch node metrics as a JSON string.
const char* storage_get_metrics(void* ctx);

Functions available in this release: storage_new, storage_start, storage_stop, storage_get_metrics (new in 0.4.1).