mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-04-13 20:28:32 +10:00
15 lines
553 B
Go
15 lines
553 B
Go
package option
|
|
|
|
import (
|
|
"github.com/sagernet/sing/common/byteformats"
|
|
"github.com/sagernet/sing/common/json/badoption"
|
|
)
|
|
|
|
type OOMKillerServiceOptions struct {
|
|
MemoryLimit *byteformats.MemoryBytes `json:"memory_limit,omitempty"`
|
|
SafetyMargin *byteformats.MemoryBytes `json:"safety_margin,omitempty"`
|
|
MinInterval badoption.Duration `json:"min_interval,omitempty"`
|
|
MaxInterval badoption.Duration `json:"max_interval,omitempty"`
|
|
ChecksBeforeLimit int `json:"checks_before_limit,omitempty"`
|
|
}
|