mirror of
https://github.com/0ceanSlim/grain.git
synced 2024-11-23 00:57:14 +00:00
14 lines
689 B
Go
14 lines
689 B
Go
|
package config
|
||
|
|
||
|
type RateLimitConfig struct {
|
||
|
WsLimit float64 `yaml:"ws_limit"`
|
||
|
WsBurst int `yaml:"ws_burst"`
|
||
|
EventLimit float64 `yaml:"event_limit"`
|
||
|
EventBurst int `yaml:"event_burst"`
|
||
|
ReqLimit float64 `yaml:"req_limit"`
|
||
|
ReqBurst int `yaml:"req_burst"`
|
||
|
MaxEventSize int `yaml:"max_event_size"`
|
||
|
KindSizeLimits []KindSizeLimitConfig `yaml:"kind_size_limits"`
|
||
|
CategoryLimits map[string]KindLimitConfig `yaml:"category_limits"`
|
||
|
KindLimits []KindLimitConfig `yaml:"kind_limits"`
|
||
|
}
|