-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5ad9261
commit 45c7edf
Showing
4 changed files
with
25 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
dns: | ||
- host: "google.localhost:8080" | ||
address: "https://google.com" | ||
- host: "100commitow.localhost" | ||
- host: "100commitow.localhost:8080" | ||
address: "https://100commitow.pl" | ||
|
||
rules: | ||
custom: | ||
- name: "request payload must contains at least one character and should contain at least one header" | ||
- name: "request payload must contain at least one character and should contain at least one header" | ||
predicate: "p => LEN(p.payload) > 0 && LEN(p.headers) > 0" | ||
- name: "payload must be a json" | ||
predicate: "p => FORMAT(p.payload) == 'json'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
package rule | ||
|
||
type ExpressionTreeFactory interface { | ||
CreateExpressionTree(tokens []Token) (expressionTree, error) | ||
type expressionTreeFactory struct { | ||
} | ||
|
||
var _ ExpressionTreeFactory = (*expressionTreeFactory)(nil) | ||
|
||
func (e *expressionTreeFactory) CreateExpressionTree(tokens []Token) (expressionTree, error) { | ||
//TODO implement me | ||
panic("implement me") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters