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

Concat Byte Filter #111

Merged
merged 5 commits into from
Oct 14, 2020
Merged

Concat Byte Filter #111

merged 5 commits into from
Oct 14, 2020

Conversation

markmandel
Copy link
Contributor

The ConcatBytes filter's job is to add a byte packet to either the beginning or end of each UDP packet that passes through. This is commonly used to provide an auth token to each packet, so they can be routed appropriately.

This also includes implementing Filter on Box to make reusable test assertion functions easier to write.

Next step will be to remove connection_id from the Client config.

Work on #8

@markmandel markmandel added kind/feature New feature or request area/user-experience Pertaining to developers trying to use Quilkin, e.g. cli interface, configuration, etc labels Sep 21, 2020
src/extensions/filter_registry.rs Outdated Show resolved Hide resolved
src/extensions/filters/concat_bytes.rs Outdated Show resolved Hide resolved
docs/extensions/filters/concat_bytes.md Outdated Show resolved Hide resolved
docs/extensions/filters/concat_bytes.md Outdated Show resolved Hide resolved
docs/extensions/filters/concat_bytes.md Outdated Show resolved Hide resolved
docs/extensions/filters/concat_bytes.md Outdated Show resolved Hide resolved
@markmandel
Copy link
Contributor Author

Just pushed up the change to SCREAMING_SNAKE_CASE, in case that's what we feel good about 😄

The `ConcatBytes` filter's job is to add a byte packet to either the
beginning or end of each UDP packet that passes through. This is
commonly used to provide an auth token to each packet, so they can be
routed appropriately.

This also includes implementing `Filter` on `Box` to make reusable test
assertion functions easier to write.

Next step will be to remove `connection_id` from the Client config.

Work on #8
Moving to SCREAMING_SNAKE_CASE for the enums.
@markmandel markmandel force-pushed the feature/concat_bytes branch from e4b8858 to 152c404 Compare October 13, 2020 01:19
@markmandel
Copy link
Contributor Author

I think that should do the trick 🤞

Copy link
Collaborator

@iffyio iffyio left a comment

Choose a reason for hiding this comment

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

LGTM!

@markmandel markmandel merged commit f59eaee into master Oct 14, 2020
@markmandel markmandel deleted the feature/concat_bytes branch October 14, 2020 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/user-experience Pertaining to developers trying to use Quilkin, e.g. cli interface, configuration, etc cla: yes kind/feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants