mirror of
https://github.com/InazumaV/Ratte.git
synced 2026-02-04 12:40:12 +00:00
add limiter config
This commit is contained in:
@@ -26,6 +26,7 @@ type Options struct {
|
||||
Acme string `json:"Acme"`
|
||||
Cert Cert `json:"Cert"`
|
||||
Hook Hook `json:"Hook"`
|
||||
Limit Limit `json:"Limit"`
|
||||
Expand map[string]interface{} `json:"Other"`
|
||||
}
|
||||
|
||||
@@ -49,6 +50,11 @@ type Hook struct {
|
||||
AfterDelNode string `json:"AfterDelNode"`
|
||||
}
|
||||
|
||||
type Limit struct {
|
||||
IPLimit int `json:"IPLimit"`
|
||||
SpeedLimit uint64 `json:"SpeedLimit"`
|
||||
}
|
||||
|
||||
type Node struct {
|
||||
Name string `json:"Name"`
|
||||
Remote Remote `json:"-"`
|
||||
|
||||
Reference in New Issue
Block a user