Types
AutonatDial {.proto2.} = object peerInfo* {.fieldNumber: 1.}: Opt[AutonatPeerInfo]
- Source Edit
AutonatDialResponse {.proto2.} = object status* {.fieldNumber: 1, ext.}: Opt[ResponseStatus] text* {.fieldNumber: 2.}: Opt[string] ma* {.fieldNumber: 3, ext.}: Opt[MultiAddress]
- Source Edit
AutonatError = object of LPError
- Source Edit
AutonatMsg {.proto2.} = object msgType* {.fieldNumber: 1, ext.}: Opt[MsgType] dial* {.fieldNumber: 2.}: Opt[AutonatDial] response* {.fieldNumber: 3.}: Opt[AutonatDialResponse]
- Source Edit
AutonatPeerInfo {.proto2.} = object id* {.fieldNumber: 1, ext.}: Opt[PeerId] addrs* {.fieldNumber: 2, ext.}: seq[MultiAddress]
- Source Edit
AutonatUnreachableError = object of LPError
- Source Edit
NetworkReachability {.pure.} = enum Unknown, NotReachable, Reachable
- Source Edit
ResponseStatus = enum Ok = 0, DialError = 100, DialRefused = 101, BadRequest = 200, InternalError = 300
- Source Edit
Consts
AddressLimit = 8
- Source Edit
AutonatCodec = "/libp2p/autonat/1.0.0"
- Source Edit
Procs
proc encode(c`gensym2: AutonatMsg): seq[byte] {....raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc isReachable(self: NetworkReachability): bool {....raises: [], tags: [], forbids: [].}
- Source Edit