py-libp2p/libp2p/discovery/advertiser_interface.py
2019-02-10 20:22:01 -05:00

16 lines
378 B
Python

from abc import ABC, abstractmethod
# pylint: disable=too-few-public-methods
class IDiscoverer(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
"""