Source code for platypush.message.event.ngrok
from platypush.message.event import Event
[docs]
class NgrokEvent(Event):
"""
``ngrok`` base event.
"""
[docs]
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
[docs]
class NgrokProcessStartedEvent(NgrokEvent):
"""
Event triggered when the ``ngrok`` process is started.
"""
[docs]
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
[docs]
class NgrokTunnelStartedEvent(NgrokEvent):
"""
Event triggered when a tunnel is started.
"""
[docs]
def __init__(self, *args, name: str, url: str, protocol: str, **kwargs):
super().__init__(*args, name=name, url=url, protocol=protocol, **kwargs)
[docs]
class NgrokTunnelStoppedEvent(NgrokEvent):
"""
Event triggered when a tunnel is stopped.
"""
[docs]
def __init__(self, *args, name: str, url: str, protocol: str, **kwargs):
super().__init__(*args, name=name, url=url, protocol=protocol, **kwargs)
[docs]
class NgrokProcessStoppedEvent(NgrokEvent):
"""
Event triggered when the ngrok process is stopped.
"""
[docs]
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)