Introduces a new type SubscriptionRequest.
This reorganizes and simplifies the type Subscription, most importantly the Subscription ID becomes mandatory.
Also, I have simplified (for the user) the handling of the subscription position in these datatypes.
In JSON the subcription position is given by two distinct object fields: read_from and cursors. On the sid of the Haskell API this is now merged in a new ADT SubscriptionPosition. This is a much better modelling of the Nakadi API in my opinion.
Furthermore, a newtype has been added: ConsumerGroup.
closes #103
Introduces a new type
SubscriptionRequest
. This reorganizes and simplifies the typeSubscription
, most importantly the Subscription ID becomes mandatory.Also, I have simplified (for the user) the handling of the subscription position in these datatypes. In JSON the subcription position is given by two distinct object fields: read_from and cursors. On the sid of the Haskell API this is now merged in a new ADT SubscriptionPosition. This is a much better modelling of the Nakadi API in my opinion.
Furthermore, a newtype has been added:
ConsumerGroup
.