MCPcopy
hub / github.com/eolinker/goku_lite / FileWriterByPeriod

Struct FileWriterByPeriod

goku-log/writer.go:27–37  ·  view source on GitHub ↗

FileWriterByPeriod 文件周期写入

Source from the content-addressed store, hash-verified

25
26//FileWriterByPeriod 文件周期写入
27type FileWriterByPeriod struct {
28 wC chan *bytes.Buffer
29 dir string
30 file string
31 period LogPeriod
32 enable bool
33 cancelFunc context.CancelFunc
34 locker sync.Mutex
35 wg sync.WaitGroup
36 expire time.Duration
37}
38
39//NewFileWriteBytePeriod 获取新的FileWriterByPeriod
40func NewFileWriteBytePeriod() *FileWriterByPeriod {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected