Debian Codegraph @

core/scan.go

raw
1 package core
2
3 import "time"
4
5 // ScannerType holds the type of scanner in use
6 type ScannerType int8
7
8 const (
9 // RSYNC represents an rsync scanner
10 RSYNC ScannerType = iota
11 // FTP represents an ftp scanner
12 FTP
13 )
14
15 // Precision is used to compute the precision of the mod time (millisecond, second)
16 type Precision time.Duration
17
18 func (p Precision) Duration() time.Duration {
19 return time.Duration(p)
20 }