示例#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)
示例#2
0
文件: etcd.py 项目: sean-/patroni
 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)