mirror of
https://github.com/XTXMarkets/ternfs.git
synced 2026-05-04 16:59:37 -05:00
18 lines
412 B
C++
18 lines
412 B
C++
#pragma once
|
|
|
|
#include <atomic>
|
|
|
|
#include "Msgs.hpp"
|
|
#include "Env.hpp"
|
|
#include "ShardDB.hpp"
|
|
#include "Undertaker.hpp"
|
|
|
|
struct ShardOptions {
|
|
bool waitForShuckle = false;
|
|
LogLevel level = LogLevel::LOG_INFO;
|
|
std::string logFile = ""; // if empty, stdout
|
|
std::string shuckleHost = "http://localhost:39999";
|
|
};
|
|
|
|
void runShard(ShardId shid, const std::string& dbDir, const ShardOptions& options);
|