privacylab / talek

a Private Publish Subscribe System
BSD 2-Clause "Simplified" License
47 stars 5 forks source link

LibPDB API #21

Open willscott opened 7 years ago

willscott commented 7 years ago

Currently, the api in libpdb/client.go doesn't really make sense:

willscott commented 7 years ago

Attempt as defining an exposed API is happening at #27

willscott commented 7 years ago

The merged #27 gets us pretty close to an external interface that is usable

I think we'll need to revisit the API for subscription pretty soon. In particular, the channel of []byte delivering messages isn't a rich enough interface for us to communicate network errors or the need to re-synchronize.

willscott commented 7 years ago

Noting one addition to the API made in the last round of debugging: .Flush() has been added, which allows the user to wait until in-progress operations have been committed to the system.