Files
simple-object-server/src/config.hpp
Your Name 66cfde013c Db
2025-05-03 09:36:54 +12:00

21 lines
423 B
C++

#ifndef CONFIG_HPP
#define CONFIG_HPP
#include <string>
#include <vector>
#include <filesystem>
namespace simple_object_storage {
struct ServerConfig {
std::vector<std::string> write_tokens;
std::filesystem::path object_store_path;
std::string host = "0.0.0.0";
uint16_t port = 80;
};
bool load_config(const std::string& config_path, ServerConfig& config);
} // namespace simple_object_storage
#endif