blob: d8d43d0783b835f409b68208c93ef8e29148d10b [file] [log] [blame]
#pragma once
#include <cstdint>
#include <string>
#include "absl/container/flat_hash_map.h"
#include "google/protobuf/struct.pb.h"
#include "google/protobuf/util/json_util.h"
#include "rocketmq/RocketMQ.h"
ROCKETMQ_NAMESPACE_BEGIN
struct BrokerData {
std::string cluster_;
std::string broker_name_;
absl::flat_hash_map<std::int64_t, std::string> broker_addresses_;
static BrokerData decode(const google::protobuf::Struct& root);
};
ROCKETMQ_NAMESPACE_END