Mongodb v0.4.3 Mongo.TopologyDescription

This acts as a single topology consisting of many connections, built on top of the existing connection API’s. It implements the Server Discovery and Monitoring specification, along with the Mongo.ServerMonitor module.

Summary

Types

t()
t :: %{type: type, set_name: String.t | nil, max_set_version: non_neg_integer | nil, max_election_id: BSON.ObjectId.t, servers: %{optional(String.t) => Mongo.ServerDescription.t}, compatible: boolean, compatibility_error: String.t | nil, local_threshold_ms: non_neg_integer}
type()
type ::
  :unknown |
  :single |
  :replica_set_no_primary |
  :replica_set_with_primary |
  :sharded

Functions

defaults(map \\ %{})
has_readable_server?(topology, read_preference)
has_writable_server?(topology)
invalid_set_name?(topology, server_description)
invalidate_stale_primary(topology, server_description)
remove_dead_nodes(arg, server_description)
select_servers(topology, type, opts \\ [])
update(topology, server_description, num_seeds)