-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start of refactored filter configurations.
Signed-off-by: Nathan Perry <[email protected]>
- Loading branch information
Nathan Perry
committed
May 19, 2022
1 parent
372e889
commit c73aada
Showing
18 changed files
with
257 additions
and
125 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
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,17 @@ | ||
syntax = "proto3"; | ||
|
||
import "api/server/response_options.proto"; | ||
import "google/protobuf/duration.proto"; | ||
import "validate/validate.proto"; | ||
|
||
package nighthawk.server; | ||
|
||
// Configures the dynamic-delay filter. | ||
message DynamicDelayConfiguration { | ||
oneof oneof_delay_options { | ||
// Static delay duration. | ||
google.protobuf.Duration static_delay = 4 [(validate.rules).duration.gte.nanos = 0]; | ||
// Concurrency based linear delay configuration. | ||
ConcurrencyBasedLinearDelay concurrency_based_linear_delay = 5; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
syntax = "proto3"; | ||
|
||
import "api/server/response_options.proto"; | ||
|
||
package nighthawk.server; | ||
|
||
// Configures the time-tracking filter. | ||
message TimeTrackingConfiguration { | ||
// If set, makes the extension include timing data in the supplied response header name. | ||
// For example, when set to "x-abc", and 3 requests are performed, the test server will respond | ||
// with: Response 1: No x-abc header because there's no previous response. Response 2: Header | ||
// x-abc: <ns elapsed between responses 2 and 1>. Response 3: Header x-abc: <ns elapsed between | ||
// responses 3 and 2>. | ||
string emit_previous_request_delta_in_response_header = 6; | ||
} |
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
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
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
Oops, something went wrong.