libp2p/protocols/pubsub/rpc/messages

    Dark Mode
Search:
Group by:
  Source   Edit

Types

ControlGraft = object
  topicId*: string
  Source   Edit
ControlIHave = object
  topicId*: string
  messageIds*: seq[MessageId]
  Source   Edit
ControlIWant = object
  messageIds*: seq[MessageId]
  Source   Edit
ControlMessage = object
  ihave*: seq[ControlIHave]
  iwant*: seq[ControlIWant]
  graft*: seq[ControlGraft]
  prune*: seq[ControlPrune]
  idontwant*: seq[ControlIWant]
  imreceiving*: seq[ControlIWant]
  Source   Edit
ControlPrune = object
  topicId*: string
  peers*: seq[PeerInfoMsg]
  backoff*: uint64
  Source   Edit
Message = object
  fromPeer*: PeerId
  data*: seq[byte]
  seqno*: seq[byte]
  topicIds*: seq[string]
  signature*: seq[byte]
  key*: seq[byte]
  Source   Edit
MessageId = seq[byte]
  Source   Edit
PeerInfoMsg = object
  peerId*: PeerId
  signedPeerRecord*: seq[byte]
  Source   Edit
RPCMsg = object
  subscriptions*: seq[SubOpts]
  messages*: seq[Message]
  control*: Option[ControlMessage]
  ping*: seq[byte]
  pong*: seq[byte]
  Source   Edit
SubOpts = object
  subscribe*: bool
  topic*: string
  Source   Edit

Procs

proc byteSize(ihaves: seq[ControlIHave]): int {....raises: [], tags: [].}
  Source   Edit
proc byteSize(iwants: seq[ControlIWant]): int {....raises: [], tags: [].}
  Source   Edit
proc byteSize(msg: Message): int {....raises: [], tags: [].}
  Source   Edit
proc byteSize(msgs: seq[Message]): int {....raises: [], tags: [].}
  Source   Edit
proc byteSize(rpc: RPCMsg): int {....raises: [], tags: [].}
  Source   Edit
func shortLog(c: ControlMessage): auto {....raises: [], tags: [].}
  Source   Edit
func shortLog(m: RPCMsg): auto {....raises: [], tags: [].}
  Source   Edit
func shortLog(msg: Message): auto {....raises: [], tags: [].}
  Source   Edit
func shortLog(s: ControlGraft): auto {....raises: [], tags: [].}
  Source   Edit
func shortLog(s: ControlIHave): auto {....raises: [], tags: [].}
  Source   Edit
func shortLog(s: ControlIWant): auto {....raises: [], tags: [].}
  Source   Edit
func shortLog(s: ControlPrune): auto {....raises: [], tags: [].}
  Source   Edit
func withSubs(T: type RPCMsg; topics: openArray[string]; subscribe: bool): T:type {.
    ...raises: [].}
  Source   Edit