Skip to content

Commit a072d9c

Browse files
Add rps to datasource
1 parent 6d48edf commit a072d9c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

config/config.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ func (c *Config) Substitute() error {
2626

2727
// DataSource -
2828
type DataSource struct {
29-
Kind string `yaml:"kind"`
30-
URL string `yaml:"url" validate:"required,url"`
31-
Credentials *Credentials `yaml:"credentials,omitempty" validate:"omitempty"`
32-
Timeout uint `yaml:"timeout" validate:"omitempty"`
29+
Kind string `yaml:"kind"`
30+
URL string `yaml:"url" validate:"required,url"`
31+
Credentials *Credentials `yaml:"credentials,omitempty" validate:"omitempty"`
32+
Timeout uint `yaml:"timeout" validate:"omitempty"`
33+
RequestsPerSecond int `yaml:"rps" validate:"omitempty,min=1"`
3334
}
3435

3536
// Contracts -

0 commit comments

Comments
 (0)