generated from gatewayd-io/plugin-template-go
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
2 changed files
with
30 additions
and
27 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package plugin | ||
|
||
const ( | ||
DecodedQueryField string = "decodedQuery" | ||
DetectorField string = "detector" | ||
ScoreField string = "score" | ||
QueryField string = "query" | ||
ErrorField string = "error" | ||
IsInjectionField string = "is_injection" | ||
ResponseField string = "response" | ||
OutputsField string = "outputs" | ||
TokensField string = "tokens" | ||
StringField string = "String" | ||
ResponseTypeField string = "response_type" | ||
|
||
DeepLearningModel string = "deep_learning_model" | ||
Libinjection string = "libinjection" | ||
|
||
ResponseType string = "error" | ||
ErrorSeverity string = "EXCEPTION" | ||
ErrorNumber string = "42000" | ||
ErrorMessage string = "SQL injection detected" | ||
ErrorDetail string = "Back off, you're not welcome here." | ||
LogLevel string = "error" | ||
|
||
TokenizeAndSequencePath string = "/tokenize_and_sequence" | ||
PredictPath string = "/v1/models/%s/versions/%s:predict" | ||
) |
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