MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / get_server

Function get_server

test/test_topology.py:84–85  ·  view source on GitHub ↗
(topology, hostname)

Source from the content-addressed store, hash-verified

82
83
84def get_server(topology, hostname):
85 return topology.get_server_by_address((hostname, 27017))
86
87
88def get_type(topology, hostname):

Callers 3

get_typeFunction · 0.85
get_monitorFunction · 0.85
test_closeMethod · 0.85

Calls 1

get_server_by_addressMethod · 0.45

Tested by

no test coverage detected