Documentation ¶ Index ¶ func Equal(file1, file2 string) bool func Hash(path string) uint64 func Move(path, dir string) error type Service func NewService(cfg *pb.Config, metaService *meta.Service) *Service func (p *Service) Move(num int, paths []string) func (p *Service) Scan() func (p *Service) Watch() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Equal ¶ func Equal(file1, file2 string) bool func Hash ¶ func Hash(path string) uint64 func Move ¶ func Move(path, dir string) error Move 移动文件. Types ¶ type Service ¶ type Service struct { // contains filtered or unexported fields } Service 文件移动服务. func NewService ¶ func NewService( cfg *pb.Config, metaService *meta.Service, ) *Service NewService 新建文件移动服务. func (*Service) Move ¶ func (p *Service) Move(num int, paths []string) Move 根据分组配置移动文件. func (*Service) Scan ¶ func (p *Service) Scan() Scan 扫描分组目录. func (*Service) Watch ¶ func (p *Service) Watch() Watch 监听分组目录. Source Files ¶ View all Source files service.go utils.go Click to show internal directories. Click to hide internal directories.