| 123456789101112131415 |
- 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:"-"`
- }
|