Documentation ¶
Index ¶
- func CheckRollFile(fname string, tlayout string, ut time.Time) bool
- func CompressFile(oldfile string, gzfname string, fmode os.FileMode) (err error)
- func CreateDir(path string, fmode os.FileMode) (err error)
- func GetCTime(finfo os.FileInfo) time.Time
- func OpenFile(fname string, fmode os.FileMode) (f *os.File, err error)
- func RemoveFile(fname string) (err error)
- type RFWrite
- type RollCfg
- type WriteInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckRollFile ¶
检查文件信息,根据最后一次写时间,判断是否需要更换时间. 如果文件为大小为0,则不会更换.
func CompressFile ¶
func RemoveFile ¶
Types ¶
type RFWrite ¶
type RFWrite struct { WriteInfo // contains filtered or unexported fields }
func NewRFWrite ¶
Click to show internal directories.
Click to hide internal directories.