py-libp2p/libp2p/discovery/advertiser_interface.py

16 lines
378 B
Python
Raw Permalink Normal View History

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