Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GLC ¶
type GLC struct {
// contains filtered or unexported fields
}
GLC define the glog cleaner options:
path - Log files will be clean to this directory prefix - Log files name prefix interval - Log files clean scanning interval reserve - Log files reserve time
func NewGLC ¶
func NewGLC(option InitOption) *GLC
NewGLC create a cleaner in a goroutine and do instantiation GLC by given init options.
type InitOption ¶
InitOption define the glog cleaner init options for glc:
Path - Log files will be clean to this directory Prefix - Log files name prefix Interval - Log files clean scanning interval Reserve - Log files reserve time
Click to show internal directories.
Click to hide internal directories.