userver: userver/storages/postgres/cluster_types.hpp File Reference
Loading...
Searching...
No Matches
cluster_types.hpp File Reference

Detailed Description

Cluster properties.

Definition in file cluster_types.hpp.

Go to the source code of this file.

#include <string>
#include <userver/utils/flags.hpp>
+ Include dependency graph for cluster_types.hpp:
+ This graph shows which files directly or indirectly include this file:

Classes

struct  storages::postgres::ClusterHostTypeHash
 

Namespaces

namespace  logging
 Logging macro and utilities.
 
namespace  storages
 Components, clients and helpers for different databases and storages.
 
namespace  storages::postgres
 Top namespace for uPg driver.
 

Typedefs

using storages::postgres::ClusterHostTypeFlags = ::utils::Flags<ClusterHostType>
 

Enumerations

enum class  storages::postgres::ClusterHostType {
  Cluster roles ,
  kNone = 0x00 ,
  storages::postgres::kMaster = 0x01 ,
  storages::postgres::kSyncSlave = 0x02 ,
  storages::postgres::kSlave = 0x04 ,
  storages::postgres::kSlaveOrMaster = kMaster | kSlave ,
  Host selection strategies ,
  storages::postgres::kRoundRobin = 0x08 ,
  storages::postgres::kNearest = 0x10
}
 

Functions

std::string storages::postgres::ToString (ClusterHostType)
 
std::string storages::postgres::ToString (ClusterHostTypeFlags)
 
logging::LogHelperstorages::postgres::operator<< (logging::LogHelper &, ClusterHostType)
 
logging::LogHelperstorages::postgres::operator<< (logging::LogHelper &, ClusterHostTypeFlags)
 

Variables

constexpr ClusterHostTypeFlags storages::postgres::kClusterHostRolesMask
 
constexpr ClusterHostTypeFlags storages::postgres::kClusterHostStrategyMask