Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DBSweeper ¶
type DBSweeper struct {
// contains filtered or unexported fields
}
DBSweeper is used to sweep the DB logs
func NewDBSweeper ¶
NewDBSweeper is constructor of DBSweeper
type FileSweeper ¶
type FileSweeper struct {
// contains filtered or unexported fields
}
FileSweeper is used to sweep the file logs
func NewFileSweeper ¶
func NewFileSweeper(workDir string, duration int) *FileSweeper
NewFileSweeper is constructor of FileSweeper
type Interface ¶
type Interface interface { // Sweep the outdated log entries if necessary // // If failed, an non-nil error will return // If succeeded, count of sweepped log entries is returned Sweep() (int, error) // Return the sweeping duration with day unit. Duration() int }
Interface defines the operations a sweeper should have
Click to show internal directories.
Click to hide internal directories.