Documentation ¶
Index ¶
- Variables
- func CheckDiskIsFast() (speedMB float64, isFast bool, err error)
- func CheckDiskWritingSpeed() (speedMB float64, err error)
- func DiskIsExtremelyFast() bool
- func DiskIsFast() bool
- func WriteBegin()
- func WriteEnd()
- func WriteReady() bool
- type DiskSpeedCache
- type Locker
- type Speed
- type StatResult
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DiskSpeed = SpeedLow DiskMaxWrites int32 = 32 DiskSpeedMB float64 )
View Source
var IsInExtremelyHighLoad = false
View Source
var IsInHighLoad = false
Functions ¶
func CheckDiskIsFast ¶ added in v1.2.5
CheckDiskIsFast check disk is 'fast' disk to write
func CheckDiskWritingSpeed ¶ added in v1.2.5
CheckDiskWritingSpeed test disk writing speed
func DiskIsExtremelyFast ¶ added in v1.2.7
func DiskIsExtremelyFast() bool
func DiskIsFast ¶ added in v1.2.7
func DiskIsFast() bool
func WriteBegin ¶ added in v1.2.7
func WriteBegin()
func WriteReady ¶ added in v1.2.7
func WriteReady() bool
Types ¶
type DiskSpeedCache ¶ added in v1.2.10
type StatResult ¶
type StatResult struct {
// contains filtered or unexported fields
}
func NewStatResult ¶
func NewStatResult(rawStat *unix.Statfs_t) *StatResult
func StatDevice ¶ added in v1.2.9
func StatDevice(path string) (*StatResult, error)
StatDevice device contains the path
func StatDeviceCache ¶ added in v1.2.9
func StatDeviceCache(path string) (*StatResult, error)
StatDeviceCache stat device with cache
func (*StatResult) FreeSize ¶
func (this *StatResult) FreeSize() uint64
func (*StatResult) TotalSize ¶
func (this *StatResult) TotalSize() uint64
func (*StatResult) UsedSize ¶
func (this *StatResult) UsedSize() uint64
Click to show internal directories.
Click to hide internal directories.