9 Commits

Author SHA1 Message Date
vyzo
8846a4b090 include ttl in registration response 2019-01-18 15:31:50 +02: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
2b0995f842 test service errors 2018-04-24 18:16:44 +03:00
vyzo
cfbcddee41 up MaxRegistrations to 1k 2018-04-24 14:10:50 +03:00
vyzo
8c1227209a better logging for service i/o 2018-04-24 12:00:53 +03:00
vyzo
4e3eaa7ba0 refactor service constructor into two parts 2018-04-23 14:44:14 +03:00
vyzo
dbe6b0ddb5 rendezvous service sync: hook for federation 2018-04-23 12:05:18 +03:00
vyzo
7d72fc79b3 service implementation 2018-04-23 11:54:25 +03:00