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

Traffic Policy revisions #156

Merged
merged 3 commits into from
Feb 12, 2024
Merged

Traffic Policy revisions #156

merged 3 commits into from
Feb 12, 2024

Conversation

rkolavo
Copy link
Contributor

@rkolavo rkolavo commented Feb 5, 2024

  • Breaks out the traffic policy structs into their own package and exports them.
  • Changes the top-level endpoint options to be WithPolicyString() (which accepts a json string) and WithPolicy (which accepts a trafficpolicy.Policy instance
  • Removed nested functional options from within the Policy option.

trafficpolicy/policy.go Outdated Show resolved Hide resolved
trafficpolicy/policy.go Outdated Show resolved Hide resolved
trafficpolicy/policy.go Outdated Show resolved Hide resolved
trafficpolicy/policy.go Outdated Show resolved Hide resolved
@rkolavo rkolavo merged commit 4d959c4 into main Feb 12, 2024
2 checks passed
@rkolavo rkolavo deleted the rk/traffic-policy-revisions branch February 12, 2024 16:18
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.

5 participants