core

package
v0.0.0-...-5de09a1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteCountIEC

func ByteCountIEC(b int64) string

func ListDisks

func ListDisks(disksInfo []*DiskInfo)

func MD5HashFunc

func MD5HashFunc(fpath string) (string, error)

func Magic

func Magic(fpath string) string

Types

type DiskInfo

type DiskInfo struct {
	PartitionInfo disk.PartitionStat
	Counters      disk.IOCountersStat
	Usage         disk.UsageStat
}

func DisksInfo

func DisksInfo() ([]*DiskInfo, error)

func (*DiskInfo) String

func (di *DiskInfo) String() string

type FileHashFunc

type FileHashFunc func(fpath string) string

type LsRecord

type LsRecord struct {
	MD5       string
	Timestamp int64
	Size      int64
	Path      string
	MimeType  string
	MagicStr  string
}

func Walk

func Walk(rootPath string, out io.Writer, cache map[string]*LsRecord) ([]*LsRecord, error)

func (*LsRecord) String

func (lr *LsRecord) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL