mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 08:26:00 +01:00
* Add max requests per minute stashbox option * Implement rate limiting * Add requests per minute to stashbox config * Add UI setting
14 lines
413 B
Go
14 lines
413 B
Go
package models
|
|
|
|
type StashBoxFingerprint struct {
|
|
Algorithm string `json:"algorithm"`
|
|
Hash string `json:"hash"`
|
|
Duration int `json:"duration"`
|
|
}
|
|
|
|
type StashBox struct {
|
|
Endpoint string `json:"endpoint"`
|
|
APIKey string `json:"api_key"`
|
|
Name string `json:"name"`
|
|
MaxRequestsPerMinute int `json:"max_requests_per_minute" koanf:"max_requests_per_minute"`
|
|
}
|