MCPcopy Index your code
hub / github.com/couchbase/couchbase-python-client / __init__

Method __init__

couchbase/result.py:257–270  ·  view source on GitHub ↗
(
        self,
        orig,  # type: pycbc_result
    )

Source from the content-addressed store, hash-verified

255class PingResult(Result):
256
257 def __init__(
258 self,
259 orig, # type: pycbc_result
260 ):
261 super().__init__(orig)
262 svc_endpoints = self._orig.raw_result.get('services', None)
263 self._endpoints = {}
264 if svc_endpoints:
265 for service, endpoints in svc_endpoints.items():
266 service_type = ServiceType(service)
267 self._endpoints[service_type] = []
268 for endpoint in endpoints:
269 self._endpoints[service_type].append(
270 EndpointPingReport(service_type, endpoint))
271
272 @property
273 def id(self) -> str:

Callers

nothing calls this directly

Calls 6

ServiceTypeClass · 0.90
EndpointPingReportClass · 0.90
__init__Method · 0.45
getMethod · 0.45
itemsMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected