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

add encoding.TextMarshaler and encoding.TextUnmarshaler implementations #754

Merged
merged 3 commits into from
Oct 5, 2021

Conversation

achille-roussel
Copy link
Contributor

This PR implements the standard encoding.TextMarshaler and encoding.TextUnmarshaler interfaces on the kafka.RequiredAcks and kafka.Compression types.

The intent is to facilitate loading and saving of these configuration values via textual representations; a common use case would be to have them provided in a configuration file, or on the command line of a kafka producer.

compress/compress.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@rhansen2 rhansen2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@achille-roussel achille-roussel merged commit 2d04c4b into main Oct 5, 2021
@achille-roussel achille-roussel deleted the encoding.TextUnmarshaler branch October 5, 2021 23:51
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.

2 participants