py-libp2p/libp2p/discovery/advertiser_interface.py
Alex Haynes 17c778de15
Peer Discovery Interface (#123)
* added file

* basic interface modeled on go repo

* fixed linting

* updated based on comments
2019-02-24 18:37:56 -05:00

16 lines
378 B
Python

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
"""