Skip to content

Commit

Permalink
Add rps to datasource
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Aug 21, 2023
1 parent 6d48edf commit a072d9c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ func (c *Config) Substitute() error {

// DataSource -
type DataSource struct {
Kind string `yaml:"kind"`
URL string `yaml:"url" validate:"required,url"`
Credentials *Credentials `yaml:"credentials,omitempty" validate:"omitempty"`
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"`
RequestsPerSecond int `yaml:"rps" validate:"omitempty,min=1"`
}

// Contracts -
Expand Down

0 comments on commit a072d9c

Please sign in to comment.