Skip to content

Commit

Permalink
Merge pull request #32 from G-Core/add_rule_weight
Browse files Browse the repository at this point in the history
add weight to rule
  • Loading branch information
freenoth authored Nov 23, 2022
2 parents 391bb18 + ed0abae commit 861341d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rules/rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ type CreateRequest struct {
Rule string `json:"rule,omitempty"`
RuleType int `json:"ruleType"`
OriginGroup *int `json:"originGroup"`
Weight int `json:"weight"`
OverrideOriginProtocol *string `json:"overrideOriginProtocol"`
Options *gcore.Options `json:"options,omitempty"`
}
Expand All @@ -26,6 +27,7 @@ type UpdateRequest struct {
Name string `json:"name,omitempty"`
Rule string `json:"rule,omitempty"`
RuleType int `json:"ruleType"`
Weight int `json:"weight"`
OriginGroup *int `json:"originGroup"`
OverrideOriginProtocol *string `json:"overrideOriginProtocol"`
Options *gcore.Options `json:"options,omitempty"`
Expand All @@ -40,5 +42,6 @@ type Rule struct {
OverrideOriginProtocol *string `json:"overrideOriginProtocol"`
Pattern string `json:"rule"`
Type int `json:"ruleType"`
Weight int `json:"weight"`
Options *gcore.Options `json:"options,omitempty"`
}

0 comments on commit 861341d

Please sign in to comment.