talek icon indicating copy to clipboard operation
talek copied to clipboard

LibPDB API

Open willscott opened this issue 8 years ago • 3 comments

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

  • publishtrace and poll trace are debug methods and should be in a test class
  • subscribe doesn't provide any interface for actually getting updates to the topic
  • No way to cancel a subscription
  • CreateTopic doesn't allow specification of password, and feels pretty disconnected from publish.

willscott avatar Jan 03 '17 14:01 willscott

Attempt as defining an exposed API is happening at #27

willscott avatar Jan 11 '17 10:01 willscott

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 avatar Mar 07 '17 19:03 willscott

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.

willscott avatar May 22 '17 00:05 willscott