mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 16:10:57 +00:00
feat/561-added autonat service
This commit is contained in:
committed by
Paul Robinson
parent
fd893afba6
commit
9655c88788
56
libp2p/host/autonat/pb/autonat_pb2.pyi
Normal file
56
libp2p/host/autonat/pb/autonat_pb2.pyi
Normal file
@ -0,0 +1,56 @@
|
||||
from typing import Any, List, Optional, Union
|
||||
|
||||
class Message:
|
||||
type: int
|
||||
dial: Any
|
||||
dial_response: Any
|
||||
|
||||
def ParseFromString(self, data: bytes) -> None: ...
|
||||
def SerializeToString(self) -> bytes: ...
|
||||
@staticmethod
|
||||
def FromString(data: bytes) -> 'Message': ...
|
||||
|
||||
class DialRequest:
|
||||
peers: List[Any]
|
||||
|
||||
def ParseFromString(self, data: bytes) -> None: ...
|
||||
def SerializeToString(self) -> bytes: ...
|
||||
@staticmethod
|
||||
def FromString(data: bytes) -> 'DialRequest': ...
|
||||
|
||||
class DialResponse:
|
||||
status: int
|
||||
peers: List[Any]
|
||||
|
||||
def ParseFromString(self, data: bytes) -> None: ...
|
||||
def SerializeToString(self) -> bytes: ...
|
||||
@staticmethod
|
||||
def FromString(data: bytes) -> 'DialResponse': ...
|
||||
|
||||
class PeerInfo:
|
||||
id: bytes
|
||||
addrs: List[bytes]
|
||||
success: bool
|
||||
|
||||
def ParseFromString(self, data: bytes) -> None: ...
|
||||
def SerializeToString(self) -> bytes: ...
|
||||
@staticmethod
|
||||
def FromString(data: bytes) -> 'PeerInfo': ...
|
||||
|
||||
class Type:
|
||||
UNKNOWN: int
|
||||
DIAL: int
|
||||
DIAL_RESPONSE: int
|
||||
|
||||
@staticmethod
|
||||
def Value(name: str) -> int: ...
|
||||
|
||||
class Status:
|
||||
OK: int
|
||||
E_DIAL_ERROR: int
|
||||
E_DIAL_REFUSED: int
|
||||
E_DIAL_FAILED: int
|
||||
E_INTERNAL_ERROR: int
|
||||
|
||||
@staticmethod
|
||||
def Value(name: str) -> int: ...
|
||||
Reference in New Issue
Block a user