Versions in this module Expand all Collapse all v1 v1.1.0 Feb 2, 2016 Changes in this version + func IsRegularFile(file *os.File) bool + func IsSameFile(path string, info os.FileInfo) bool + func ReadOpen(path string) (*os.File, error) + func SafeFileRotate(path, tempfile string) error + type File struct + File *os.File + FileInfo os.FileInfo + FileState *FileState + Path string + func (f *File) IsRegularFile() bool + func (f1 *File) IsSameFile(f2 *File) bool + type FileEvent struct + Bytes int + DocumentType string + Fields *common.MapStr + Fileinfo *os.FileInfo + InputType string + Offset int64 + ReadTime time.Time + Source *string + Text *string + func (f *FileEvent) GetState() *FileState + func (f *FileEvent) SetFieldsUnderRoot(fieldsUnderRoot bool) + func (f *FileEvent) ToMapStr() common.MapStr + type FileState struct + FileStateOS *FileStateOS + Offset int64 + Source *string + type FileStateOS struct + Device uint64 + IdxHi uint64 + IdxLo uint64 + Inode uint64 + Vol uint64 + func GetOSFileState(info *os.FileInfo) *FileStateOS + func (fs *FileStateOS) IsSame(state *FileStateOS) bool v1.0.1 Dec 17, 2015