Mongey / ksql

A barebones go client for interacting with Confluent's KSQL Server
13 stars 10 forks source link

Add support for context cancellation, pluggable logger #1

Closed samv closed 5 years ago

samv commented 5 years ago

Currently clients would only be stopped by query back-pressure, but if the query does not match many results this could take a long time. Add a new constructor that takes a stdlib context, and pass it through to the HTTP Client Request.

Also a little change in there to allow the caller to provide their own logger.