Richard Ramos
793fb21ad8
chore: change project org
2022-10-27 09:06:46 -04:00
Richard Ramos
ef843e5c7d
chore: update libp2p
2022-10-19 15:26:05 -04:00
Richard Ramos
9b9b02b1e8
chore: update deps
2022-08-17 17:07:30 -04:00
Anthony Laibe
a93f3b70c4
refactor: remove dependencies to level db
2021-10-18 09:04:16 +02:00
Richard Ramos
a0d71f947c
fix: change log level when purging records
2021-10-16 17:46:58 -04:00
Richard Ramos
e8f25fa062
fix: libp2p spec uses bytes instead of a protobuffer for signed peer records
2021-10-16 17:46:58 -04:00
Richard Ramos
b53661c585
fix: validate signed envelopes
2021-10-04 22:06:56 -04:00
Richard Ramos
b0065d5318
chore: update rendezvous documentation
2021-10-04 14:16:42 -04:00
Richard Ramos
292f29fd18
chore: rename repo
2021-10-03 12:23:05 -04:00
Richard Ramos
da00a45856
fix: proto gen script
2021-10-01 15:49:13 -04:00
Richard Ramos
39d264435e
feat: sign peer records
2021-10-01 15:20:58 -04:00
Richard Ramos
020ef08b26
fix: set max limit to 50 nodes and fix empty peer id
2021-09-30 11:46:20 -04:00
Richard Ramos
58fe0c6241
fix: no peers available
2021-09-30 10:54:48 -04:00
Richard Ramos
ba3a59f225
refactor: obtain the peers from peerstore
2021-09-30 10:39:04 -04:00
Richard Ramos
1b6d7e4055
chore: rename protocol
2021-09-29 16:02:49 -04:00
Richard Ramos
d227fbccda
refactor: leveldb, cleanup and service control
...
- Use leveldb instead of sqlite
- Cleanup older records
- Add start/stop functions to service
2021-09-29 15:39:40 -04:00
Richard Ramos
94a02b1432
Create README.md
2021-09-28 19:00:14 -04:00
Richard Ramos
507ac015e4
fix: set max ttl to 20s
2021-09-28 18:48:40 -04:00
Richard Ramos
9daf116812
accept multiple rendezvous peers for random selection
2021-09-28 16:27:40 -04:00
Richard Ramos
4397dd0f84
chore: make versions match go-waku
2021-09-28 15:50:17 -04:00
Richard Ramos
ba496ca76a
rename package
2021-09-28 15:37:10 -04:00
Richard Ramos
c10d69ddf2
fix: remove unregister
2021-09-28 15:34:52 -04:00
Guilhem Fanton
7b54d608d8
Merge pull request #2 from berty/feat/bump-libp2p
...
feat: bump libp2p
2021-09-15 15:31:38 +02:00
gfanton
a10842d055
feat: bump libp2p
...
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
2021-09-15 15:29:04 +02:00
Guilhem Fanton
5b2e7e8ff1
Merge pull request #1 from berty/fix/stream-leaks
2020-10-28 15:14:28 +01:00
Guilhem Fanton
b953ed48bb
chore: clean up
...
Signed-off-by: Guilhem Fanton <guilhem.fanton@gmail.com>
2020-10-28 15:03:31 +01:00
Guilhem Fanton
c9e4735369
fix: stream leaks
...
Signed-off-by: Guilhem Fanton <guilhem.fanton@gmail.com>
2020-10-28 15:02:22 +01:00
Guilhem Fanton
6c6522afbc
chore: update deps
...
- upgrade to proto3
Signed-off-by: Guilhem Fanton <guilhem.fanton@gmail.com>
2020-10-28 15:02:19 +01:00
Guilhem Fanton
90a910542f
Merge remote-tracking branch 'origin/implement-spec' into master
...
* origin/implement-spec: (47 commits)
replaced sync.Map with map + RW mutex. small refactors
fixed compile error from previous commit + code refactoring
RendezvousPoint and RendezvousClient now return the server's TTL on Registered records. Default TTL for discovery client increased discovery client now utilizes server cookie for added efficiency
Add stateful discovery client
Switched from gx to go mod and started using go-libp2p-core interfaces
update tests
expose counter in register interface
update gx deps
include ttl in registration response
update protobuf
two interfaces for client-side: RendezvousPoint and RendezvousClient
don't leak database error details in internal errors
refactor database interface and implementation into db subpackage
client: add TODO for robust discovery error recovery
use randomized exponential backoff in error retry for persistent client registrations
test client specific functionality
make db nonce 32 bytes
test service errors
basic service test
test db functionality with multiple namespaces
...
2020-10-16 10:21:07 +02:00
vyzo
737144165c
Merge pull request #3 from aschmahmann/feat/add-discovery-client
...
Feat/add discovery client
2019-07-08 09:54:49 +03:00
Adin Schmahmann
0e771cd3c2
replaced sync.Map with map + RW mutex. small refactors
2019-06-21 09:06:01 +02:00
Adin Schmahmann
25d0082f05
fixed compile error from previous commit + code refactoring
2019-06-05 13:44:44 -04:00
Adin Schmahmann
9052b531cc
RendezvousPoint and RendezvousClient now return the server's TTL on Registered records.
...
Default TTL for discovery client increased
discovery client now utilizes server cookie for added efficiency
2019-05-31 18:58:46 -04:00
Adin Schmahmann
790128061e
Add stateful discovery client
2019-05-31 12:48:51 -04:00
Adin Schmahmann
91cdb88828
Switched from gx to go mod and started using go-libp2p-core interfaces
2019-05-28 14:41:28 -04:00
vyzo
2843bd30d1
update tests
2019-01-18 15:53:16 +02:00
vyzo
f2ee9b3d44
expose counter in register interface
2019-01-18 15:46:02 +02:00
vyzo
3c726d2ea9
update gx deps
2019-01-18 15:32:04 +02:00
vyzo
8846a4b090
include ttl in registration response
2019-01-18 15:31:50 +02:00
vyzo
1ee2b55a9f
update protobuf
2019-01-18 15:22:49 +02:00
vyzo
c540724f1f
two interfaces for client-side: RendezvousPoint and RendezvousClient
...
RendezvousClient soon to be stateful.
2018-04-28 12:05:21 +03:00
vyzo
baf1e4e618
don't leak database error details in internal errors
2018-04-26 14:30:47 +03:00
vyzo
c487c2077b
refactor database interface and implementation into db subpackage
...
We now have:
- db/dbi.go -- interface, no dependency on any particular database
- db/sqlite/... -- sqlite implementation, depends on dbi
- the rendezvous.NewRendezvousService API has been redefined to NewRendezvouServiceWithDB
service importer constructs the database of choice
- the rendezvous package has no dependences on db implementation, so clients can import
without linking SQLite in the binary
2018-04-26 14:06:58 +03:00
vyzo
aa7f9daaa8
client: add TODO for robust discovery error recovery
2018-04-25 11:06:08 +03:00
vyzo
e530204107
use randomized exponential backoff in error retry for persistent client registrations
2018-04-24 21:26:06 +03:00
vyzo
6c4fda5295
test client specific functionality
2018-04-24 18:43:43 +03:00
vyzo
9ab12abbde
make db nonce 32 bytes
2018-04-24 18:23:10 +03:00
vyzo
2b0995f842
test service errors
2018-04-24 18:16:44 +03:00
vyzo
a47367d67a
basic service test
2018-04-24 17:11:03 +03:00
vyzo
4788ef758e
test db functionality with multiple namespaces
2018-04-24 15:53:22 +03:00