Types
Autonat = ref object of LPProtocol sem: AsyncSemaphore switch*: Switch
- Source Edit
AutonatDial = object peerInfo: Option[AutonatPeerInfo]
- Source Edit
AutonatDialResponse = object status*: ResponseStatus text*: Option[string] ma*: Option[MultiAddress]
- Source Edit
AutonatError = object of LPError
- Source Edit
AutonatPeerInfo = object id: Option[PeerId] addrs: seq[MultiAddress]
- Source Edit
ResponseStatus = enum Ok = 0, DialError = 100, DialRefused = 101, BadRequest = 200, InternalError = 300
- Source Edit
Consts
AutonatCodec = "/libp2p/autonat/1.0.0"
- Source Edit
Procs
proc dialMe(a: Autonat; pid: PeerId; ma: MultiAddress | seq[MultiAddress]): Future[ MultiAddress] {.stackTrace: false, ...gcsafe, raises: [], raises: [].}
- Source Edit
proc encode(d: AutonatDial): ProtoBuffer {....raises: [], tags: [].}
- Source Edit
proc encode(msg: AutonatMsg): ProtoBuffer {....raises: [], tags: [].}
- Source Edit
proc encode(r: AutonatDialResponse): ProtoBuffer {....raises: [], tags: [].}
- Source Edit