Versions in this module Expand all Collapse all v1 v1.1.3 Feb 13, 2020 Changes in this version + type AutoFile struct + ID string + Path string + func OpenAutoFile(path string) (af *AutoFile, err error) + func (af *AutoFile) Close() error + func (af *AutoFile) Size() (int64, error) + func (af *AutoFile) Sync() error + func (af *AutoFile) Write(b []byte) (n int, err error) + type Group struct + Dir string + Head *AutoFile + ID string + func OpenGroup(headPath string) (g *Group, err error) + func (g *Group) Close() + func (g *Group) FindLast(prefix string) (match string, found bool, err error) + func (g *Group) Flush() error + func (g *Group) HeadSizeLimit() int64 + func (g *Group) MaxIndex() int + func (g *Group) MinIndex() int + func (g *Group) NewReader(index int) (*GroupReader, error) + func (g *Group) OnStart() error + func (g *Group) OnStop() + func (g *Group) ReadGroupInfo() GroupInfo + func (g *Group) RotateFile() + func (g *Group) Search(prefix string, cmp SearchFunc) (*GroupReader, bool, error) + func (g *Group) SetHeadSizeLimit(limit int64) + func (g *Group) SetTotalSizeLimit(limit int64) + func (g *Group) TotalSizeLimit() int64 + func (g *Group) Write(p []byte) (nn int, err error) + func (g *Group) WriteLine(line string) error + type GroupInfo struct + HeadSize int64 + MaxIndex int + MinIndex int + TotalSize int64 + type GroupReader struct + func (gr *GroupReader) Close() error + func (gr *GroupReader) CurIndex() int + func (gr *GroupReader) PushLine(line string) + func (gr *GroupReader) Read(p []byte) (n int, err error) + func (gr *GroupReader) ReadLine() (string, error) + func (gr *GroupReader) SetIndex(index int) error + type SearchFunc func(line string) (int, error) + func MakeSimpleSearchFunc(prefix string, target int) SearchFunc + type SighupWatcher struct