Merge pull request #27 from zixuanzh/peer-info

Peer info
This commit is contained in:
ZX
2018-10-30 00:07:08 +01:00
committed by GitHub
7 changed files with 39 additions and 19 deletions

View File

@ -10,7 +10,8 @@ class IPeerMetadata(ABC):
"""
:param peer_id: peer ID to lookup key for
:param key: key to look up
:return: value at key for given peer, error
:return: value at key for given peer
:raise Exception: peer ID not found
"""
pass
@ -20,7 +21,7 @@ class IPeerMetadata(ABC):
:param peer_id: peer ID to lookup key for
:param key: key to associate with peer
:param val: value to associated with key
:return: error
:raise Exception: unsuccessful put
"""
pass