mirror of
https://github.com/codex-storage/nim-libp2p.git
synced 2025-01-11 19:44:18 +00:00
adding chronicles topics
This commit is contained in:
parent
827a8caba6
commit
74d2aea63d
@ -16,6 +16,9 @@ import types,
|
|||||||
../../stream/lpstream,
|
../../stream/lpstream,
|
||||||
../../connection
|
../../connection
|
||||||
|
|
||||||
|
logScope:
|
||||||
|
topic = "mplex-channel"
|
||||||
|
|
||||||
const DefaultChannelSize* = DefaultBufferSize * 64 # 64kb
|
const DefaultChannelSize* = DefaultBufferSize * 64 # 64kb
|
||||||
|
|
||||||
type
|
type
|
||||||
|
@ -15,6 +15,9 @@ import types,
|
|||||||
../../vbuffer,
|
../../vbuffer,
|
||||||
../../stream/lpstream
|
../../stream/lpstream
|
||||||
|
|
||||||
|
logScope:
|
||||||
|
topic = "mplex-coder"
|
||||||
|
|
||||||
type
|
type
|
||||||
Msg* = tuple
|
Msg* = tuple
|
||||||
id: uint
|
id: uint
|
||||||
@ -72,4 +75,4 @@ proc writeMsg*(conn: Connection,
|
|||||||
id: uint,
|
id: uint,
|
||||||
msgType: MessageType,
|
msgType: MessageType,
|
||||||
data: string) {.async, gcsafe.} =
|
data: string) {.async, gcsafe.} =
|
||||||
result = conn.writeMsg(id, msgType, cast[seq[byte]](toSeq(data.items)))
|
result = conn.writeMsg(id, msgType, cast[seq[byte]](toSeq(data.items)))
|
||||||
|
@ -27,6 +27,9 @@ import coder, types, channel,
|
|||||||
../../stream/bufferstream,
|
../../stream/bufferstream,
|
||||||
../../stream/lpstream
|
../../stream/lpstream
|
||||||
|
|
||||||
|
logScope:
|
||||||
|
topic = "mplex"
|
||||||
|
|
||||||
type
|
type
|
||||||
Mplex* = ref object of Muxer
|
Mplex* = ref object of Muxer
|
||||||
remote*: Table[uint, Channel]
|
remote*: Table[uint, Channel]
|
||||||
|
@ -17,6 +17,9 @@ import ../protobuf/minprotobuf,
|
|||||||
../multiaddress,
|
../multiaddress,
|
||||||
../protocols/protocol
|
../protocols/protocol
|
||||||
|
|
||||||
|
logScope:
|
||||||
|
topic = "identify"
|
||||||
|
|
||||||
const IdentifyCodec* = "/ipfs/id/1.0.0"
|
const IdentifyCodec* = "/ipfs/id/1.0.0"
|
||||||
const IdentifyPushCodec* = "/ipfs/id/push/1.0.0"
|
const IdentifyPushCodec* = "/ipfs/id/push/1.0.0"
|
||||||
const ProtoVersion* = "ipfs/0.1.0"
|
const ProtoVersion* = "ipfs/0.1.0"
|
||||||
|
@ -2,4 +2,5 @@ import unittest
|
|||||||
import testvarint, testbase32, testbase58, testbase64
|
import testvarint, testbase32, testbase58, testbase64
|
||||||
import testrsa, testecnist, tested25519, testsecp256k1, testcrypto
|
import testrsa, testecnist, tested25519, testsecp256k1, testcrypto
|
||||||
import testmultibase, testmultihash, testmultiaddress, testcid, testpeer
|
import testmultibase, testmultihash, testmultiaddress, testcid, testpeer
|
||||||
import testidentify, testtransport, testmultistream, testbufferstream, testmplex, testswitch
|
import testidentify, testtransport, testmultistream, testbufferstream,
|
||||||
|
testmplex, testswitch
|
||||||
|
Loading…
x
Reference in New Issue
Block a user