mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Lint peer classes
This commit is contained in:
@ -2,50 +2,46 @@ from abc import ABC, abstractmethod
|
||||
|
||||
class IPeerData(ABC):
|
||||
|
||||
def __init__(self, context):
|
||||
self.context = context
|
||||
|
||||
"""
|
||||
:return: all protocols associated with given peer
|
||||
"""
|
||||
:return: all protocols associated with given peer
|
||||
"""
|
||||
def get_protocols(self):
|
||||
pass
|
||||
pass
|
||||
|
||||
"""
|
||||
:param protocols: protocols to add
|
||||
"""
|
||||
"""
|
||||
def add_protocols(self, protocols):
|
||||
pass
|
||||
pass
|
||||
|
||||
"""
|
||||
:param addrs: multiaddresses to add
|
||||
"""
|
||||
"""
|
||||
def add_addrs(self, addrs):
|
||||
pass
|
||||
pass
|
||||
|
||||
"""
|
||||
:return: all multiaddresses
|
||||
"""
|
||||
"""
|
||||
def get_addrs(self):
|
||||
pass
|
||||
pass
|
||||
|
||||
"""
|
||||
Clear all addresses
|
||||
"""
|
||||
def clear_addrs(self):
|
||||
pass
|
||||
pass
|
||||
|
||||
"""
|
||||
:param key: key in KV pair
|
||||
:param val: val to associate with key
|
||||
"""
|
||||
def put_metadata(self, key, val):
|
||||
pass
|
||||
pass
|
||||
|
||||
"""
|
||||
:param key: key in KV pair
|
||||
:return: val for key, error (only defined if key not found)
|
||||
"""
|
||||
def get_metadata(self, key):
|
||||
pass
|
||||
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user