We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d48edf commit a072d9cCopy full SHA for a072d9c
config/config.go
@@ -26,10 +26,11 @@ func (c *Config) Substitute() error {
26
27
// DataSource -
28
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"`
+ Kind string `yaml:"kind"`
+ URL string `yaml:"url" validate:"required,url"`
+ Credentials *Credentials `yaml:"credentials,omitempty" validate:"omitempty"`
+ Timeout uint `yaml:"timeout" validate:"omitempty"`
33
+ RequestsPerSecond int `yaml:"rps" validate:"omitempty,min=1"`
34
}
35
36
// Contracts -
0 commit comments