libp2p/protocols/connectivity/autonat/core

Search:
Group by:
Source   Edit  

Types

AutonatDial = object
  peerInfo*: Opt[AutonatPeerInfo]
Source   Edit  
AutonatDialResponse = object
  status*: ResponseStatus
  text*: Opt[string]
  ma*: Opt[MultiAddress]
Source   Edit  
AutonatError = object of LPError
Source   Edit  
AutonatMsg = object
  msgType*: MsgType
  dial*: Opt[AutonatDial]
  response*: Opt[AutonatDialResponse]
Source   Edit  
AutonatPeerInfo = object
  id*: Opt[PeerId]
  addrs*: seq[MultiAddress]
Source   Edit  
MsgType = enum
  Dial = 0, DialResponse = 1
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 decode(__4412408491: typedesc[AutonatMsg]; buf: seq[byte]): Opt[AutonatMsg] {.
    ...raises: [].}
Source   Edit  
proc encode(d: AutonatDial): ProtoBuffer {....raises: [], tags: [], forbids: [].}
Source   Edit  
proc encode(msg: AutonatMsg): ProtoBuffer {....raises: [], tags: [], forbids: [].}
Source   Edit  
proc encode(r: AutonatDialResponse): ProtoBuffer {....raises: [], tags: [],
    forbids: [].}
Source   Edit