//
// Copyright (c) 2019-2026, Manticore Software LTD (https://manticoresearch.com)
// All rights reserved
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License. You should have
// received a copy of the GPL license along with this program; if you
// did not, you can find it at http://www.gnu.org
//

#pragma once

#include "std/string.h"
#include "searchdaemon.h"
#include "api_command_cluster.h"

enum class NODES_E : bool;

bool SendClusterUpdateNodes ( const CSphString & sCluster, const CSphString & sUser, NODES_E eNodes, const VecTraits_T<CSphString> & dNodes );
bool SendClusterExitUpdateNodes ( const CSphString & sCluster, const CSphString & sUser, const CSphString & sLeavingNode, int64_t iWaitTimeoutMs, const VecTraits_T<CSphString> & dNodes );
