...

Text file src/go.mongodb.org/mongo-driver/testdata/server-selection/server_selection/Single/read/SecondaryPreferred.json

Documentation: go.mongodb.org/mongo-driver/testdata/server-selection/server_selection/Single/read

     1{
     2  "topology_description": {
     3    "type": "Single",
     4    "servers": [
     5      {
     6        "address": "a:27017",
     7        "avg_rtt_ms": 5,
     8        "type": "Standalone",
     9        "tags": {
    10          "data_center": "dc"
    11        }
    12      }
    13    ]
    14  },
    15  "operation": "read",
    16  "read_preference": {
    17    "mode": "SecondaryPreferred",
    18    "tag_sets": [
    19      {
    20        "data_center": "nyc"
    21      }
    22    ]
    23  },
    24  "suitable_servers": [
    25    {
    26      "address": "a:27017",
    27      "avg_rtt_ms": 5,
    28      "type": "Standalone",
    29      "tags": {
    30        "data_center": "dc"
    31      }
    32    }
    33  ],
    34  "in_latency_window": [
    35    {
    36      "address": "a:27017",
    37      "avg_rtt_ms": 5,
    38      "type": "Standalone",
    39      "tags": {
    40        "data_center": "dc"
    41      }
    42    }
    43  ]
    44}

View as plain text