mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-04-11 17:47:20 +10:00
16 lines
592 B
Go
16 lines
592 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"`
|
|
KillerDisabled bool `json:"-"`
|
|
MemoryLimitOverride uint64 `json:"-"`
|
|
}
|