Peer Discovery Interface (#123)

* added file

* basic interface modeled on go repo

* fixed linting

* updated based on comments
This commit is contained in:
Alex Haynes
2019-02-24 18:37:56 -05:00
committed by GitHub
parent e3e3ac30b1
commit 17c778de15
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,16 @@
from abc import ABC, abstractmethod
# pylint: disable=too-few-public-methods
class IAdvertiser(ABC):
def __init__(self):
pass
@abstractmethod
def advertise(self, service):
"""
Advertise providing a specific service to the network
:param service: service that you provide
:raise Exception: network error
"""