Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogCleaner ¶
type LogCleaner struct {
// contains filtered or unexported fields
}
func NewLogCleaner ¶
func NewLogCleaner(backupDir, backupBaseName string, options ...Option) (*LogCleaner, error)
func (*LogCleaner) Clean ¶
func (lc *LogCleaner) Clean() error
func (*LogCleaner) Init ¶
func (lc *LogCleaner) Init() error
func (*LogCleaner) Run ¶
func (lc *LogCleaner) Run() error
func (*LogCleaner) Shutdown ¶
func (lc *LogCleaner) Shutdown()
type Option ¶
type Option func(*LogCleaner) error
func SetBackupCount ¶
func SetBackupDuration ¶
func SetBackupExt ¶
func SetCheckInterval ¶
Click to show internal directories.
Click to hide internal directories.