Esempio n. 1
0
 def member(name, value, znode):
     conn_url, api_url = parse_connection_string(value)
     return Member(znode.version, name, conn_url, api_url, None, None)
Esempio n. 2
0
 def member(node):
     conn_url, api_url = parse_connection_string(node.value)
     return Member(node.modifiedIndex, os.path.basename(node.key), conn_url, api_url, node.expiration, node.ttl)