17 lines
409 B
Python
17 lines
409 B
Python
from abc import ABC, abstractmethod
|
|
|
|
|
|
class IDiscoverer(ABC):
|
|
|
|
def __init__(self):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def find_peers(self, service):
|
|
"""
|
|
Find peers on the networking providing a particular service
|
|
:param service: service that peers must provide
|
|
:return: peerstore containing found peers on the network
|
|
:raise Exception: network error
|
|
"""
|