Versions in this module Expand all Collapse all v0 v0.0.1 Sep 20, 2026 Changes in this version + const OpArchive + const OpClose + const OpCompress + const OpListFiles + const OpNewManager + const OpOpen + const OpRemove + const OpRename + var ErrEmptyExt = errors.New("go-logicalfile/logicalfile: file extension must no be empty") + var ErrFileClosed = errors.New("go-logicalfile/logicalfile: file already closed") + var ErrInplace = errors.New("go-logicalfile/logicalfile: inplace compression is not supported") + var ErrNilFunc = errors.New("go-logicalfile/logicalfile: compression function must no be nil") + var ErrNilWriter = errors.New("go-logicalfile/logicalfile: inner writer is nil. cannot write") + func ReplaceCompressor(ext string, compress func(src, dst string, level int) error) error + type Error struct + Detail string + Inner error + Msg string + Op string + func (e *Error) Error() string + func (e *Error) Is(target error) bool + func (e *Error) Unwrap() error + type File struct + func NewFile(c *FileConfig) (*File, error) + func (f *File) Close() error + func (f *File) Rotate() error + func (f *File) Write(b []byte) (int, error) + type FileConfig struct + Fallback func([]byte) (int, error) + HandleError func(error) + MaxBytes uint64 + RotateAt func() time.Time + type FileProvider interface + Get func() (io.Writer, int64, error) + Put func(io.Writer) error + Wait func() + type ManagerConfig struct + ActiveFile string + CompressLv int + DstDir string + MaxAge time.Duration + MaxHistory int + MaxTotalBytes uint64 + Pattern string + SrcDir string + UseParsedAge bool