Documentation ¶
Index ¶
- Constants
- func AdjustOOMScore(score int, logger *log.Logger) error
- func DeduplicateSlice(incoming []string) (outgoing []string)
- func HeadCheck(domain string, ua string) bool
- func HeadCheckDomains(domains []string, ua string) map[string]struct{}
- func KillPid(pid int)
- func PIDWatcher(pid int)
- func WaitAndKill(sleepTime time.Duration, pid int)
- type Calculator
Constants ¶
View Source
const ( MaxPerCore = 16 MaxPerGig = 4 )
Variables ¶
This section is empty.
Functions ¶
func DeduplicateSlice ¶ added in v1.3.6
func HeadCheckDomains ¶
func PIDWatcher ¶
func PIDWatcher(pid int)
func WaitAndKill ¶
Types ¶
type Calculator ¶ added in v1.3.6
type Calculator struct {
OvercommitRatio int64
}
func (*Calculator) CalculateMaxWorkers ¶ added in v1.3.6
func (c *Calculator) CalculateMaxWorkers() (int64, error)
Click to show internal directories.
Click to hide internal directories.