Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: document default Encode behavior #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pabigot
Copy link

@pabigot pabigot commented Jan 1, 2022

The current influxdb-client-go provides functions to convert points to line protocol, but it doesn't actually use them, instead delegating to this package. While reviewing how to do the conversion I found that the default behavior of the encoder is not fully specified. This PR clarifies the documentation.

@pabigot
Copy link
Author

pabigot commented Jan 1, 2022

Also clarified that this produces records that are terminated by a newline; a strict reading of the specification would allow for newlines appearing only as separators, which if produced would complicate combining encoded batches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant