61 [[nodiscard]]
auto id() const -> const std::
string&;
69 [[nodiscard]] auto
node_uuid() const -> const std::
string&;
77 [[nodiscard]] auto
hostname() const -> const std::
string&;
88 [[nodiscard]] auto
port() const -> std::uint16_t;
96 explicit operator
bool() const;
98 auto operator==(const
node_id& other) const ->
bool;
99 auto operator!=(const
node_id& other) const ->
bool;
100 auto operator<(const
node_id& other) const ->
bool;
107 std::
string node_uuid_{};
108 std::string hostname_{};
109 std::uint16_t port_{ 0 };
121 return std::hash<std::string>{}(nid.id());
Uniquely identifies a cluster node.
Definition node_id.hxx:40
auto node_uuid() const -> const std::string &
The server-assigned node UUID (empty on servers before 8.0.1).
auto id() const -> const std::string &
User-facing identifier string.
node_id()=default
Creates an empty (invalid) node_id.
friend class internal_node_id
Definition node_id.hxx:103
auto port() const -> std::uint16_t
The port of the node's key-value service.
auto hostname() const -> const std::string &
The hostname of the node.
Represents a single item from the result of scan().
Definition allow_querying_search_index_options.hxx:28
auto operator()(const couchbase::node_id &nid) const noexcept -> std::size_t
Definition node_id.hxx:119