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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

New rule syntax #4437

Merged
merged 5 commits into from Jan 30, 2019
Merged

New rule syntax #4437

merged 5 commits into from Jan 30, 2019

Conversation

juliens
Copy link
Member

@juliens juliens commented Jan 29, 2019

What does this PR do?

Introduce a new syntax for the rules.

Motivation

More fun with rules 馃榾
Now you can use && || and ().
ex:

(Host(`myhost`) && Path(`/mypath`)) || Host(`otherhost`)

More

  • Added/updated tests

Additional Notes

Co-authored-by: jbdoumenjou jb.doumenjou@gmail.com

Copy link
Member

@ldez ldez left a comment

Choose a reason for hiding this comment

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

馃憖

rules/parser.go Outdated Show resolved Hide resolved
rules/rules.go Outdated Show resolved Hide resolved
rules/rules.go Outdated Show resolved Hide resolved
rules/rules_test.go Outdated Show resolved Hide resolved
server/router/router.go Outdated Show resolved Hide resolved
Copy link
Member

@ldez ldez left a comment

Choose a reason for hiding this comment

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

馃憖

rules/rules.go Outdated Show resolved Hide resolved
rules/rules.go Outdated Show resolved Hide resolved
rules/rules.go Outdated Show resolved Hide resolved
rules/rules_test.go Outdated Show resolved Hide resolved
server/router/router.go Outdated Show resolved Hide resolved
Copy link
Member

@ldez ldez left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@jbdoumenjou jbdoumenjou left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@mmatur mmatur left a comment

Choose a reason for hiding this comment

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

LGTM

juliens and others added 5 commits January 30, 2019 15:14
Co-authored-by: jbdoumenjou <jb.doumenjou@gmail.com>
Co-Authored-By: juliens <julien.salleyron@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants