Commit Graph

3 Commits (08fbdbff1abd9a2795999ed9da398ee07a4aaeae)

Author SHA1 Message Date
Kelvin Wang 60a3922446 fix(models): fix the line breaker 2020-03-19 18:32:29 -04:00
Stuart Carnie 195a554353
fix(models): Fix bug that did not return ErrLimitMaxBytesExceeded
Adds additional allocation check when constructing errors, to ensure
these do not exceed total allocations.
2020-01-15 17:50:37 -07:00
Stuart Carnie 76c4f90f0b
feat(models): Add limits options to line-protocol parser
The behavior of the line-protocol parser remains unchanged. This PR
moves the functions to a struct in order to simplify the tracking of
limits whilst parsing a request.

Limits may be set using the ParsePointsWithOptions API and the
associated WithParser functional options, all of which are documented.

It should be noted that the behavior of ParsePointsWithPrecision remains
unchanged.

ParsePointsWithPrecisionV1 was no longer used and removed to simplify
code.
2020-01-10 14:42:02 -07:00