mirror of https://github.com/waku-org/nwaku.git
libwaku: exposing more features
- Allow to start or store discv5 - Expose lightpush request operation - Expose list of connected and mesh peers - Expose store client
This commit is contained in:
parent
8f28992599
commit
9f8f156ceb
|
@ -73,6 +73,12 @@ proc createPeerExchangeRequest*(
|
||||||
): ptr type T =
|
): ptr type T =
|
||||||
return T.createShared(PEER_EXCHANGE, "", "", 0, "", numPeers)
|
return T.createShared(PEER_EXCHANGE, "", "", 0, "", numPeers)
|
||||||
|
|
||||||
|
proc createDiscV5StartRequest*(T: type DiscoveryRequest): ptr type T =
|
||||||
|
return T.createShared(START_DISCV5, "", "", 0, "")
|
||||||
|
|
||||||
|
proc createDiscV5StopRequest*(T: type DiscoveryRequest): ptr type T =
|
||||||
|
return T.createShared(STOP_DISCV5, "", "", 0, "")
|
||||||
|
|
||||||
proc destroyShared(self: ptr DiscoveryRequest) =
|
proc destroyShared(self: ptr DiscoveryRequest) =
|
||||||
deallocShared(self[].enrTreeUrl)
|
deallocShared(self[].enrTreeUrl)
|
||||||
deallocShared(self[].nameDnsServer)
|
deallocShared(self[].nameDnsServer)
|
||||||
|
|
Loading…
Reference in New Issue