Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NurseConfig ¶
type NurseConfig struct { ProfileRoot string `toml:"profile-root"` PollInterval time.Duration `toml:"poll-interval"` GatherDuration time.Duration `toml:"gather-duration"` MaxProfileSize utils.ByteSize `toml:"max-profile-size"` CPUProfileRate int `toml:"cpu-profile-rate"` MemProfileRate int `toml:"mem-profile-rate"` BlockProfileRate int `toml:"block-profile-rate"` MutexProfileFraction int `toml:"mutex-profile-fraction"` MemThreshold utils.ByteSize `toml:"mem-threshold"` GoroutineThreshold int `toml:"goroutine-threshold"` Logger log.Logger `toml:"-"` }
func MustReadConfigTOML ¶
func MustReadConfigTOML(path string) NurseConfig
func ReadConfigTOML ¶
func ReadConfigTOML(path string) (NurseConfig, error)
Click to show internal directories.
Click to hide internal directories.