Versions in this module Expand all Collapse all v1 v1.9.18 Jun 18, 2024 v1.9.15 Jun 17, 2024 Changes in this version + const ExtensionSeparator + var NextShardError = errors.New("file: changed to next shard") + var StorageIsNotDirectoryError = errors.New("file: storage is not directory") + func CheckDirectory(directory string) error + type Collection interface + Count func() int + Namer func() Namer + Next func() (*os.File, error) + type CollectionOption func(collection Collection) (Collection, error) + type File struct + func NewFile(writer Writer, reader Reader) *File + func (file *File) Close() error + func (file *File) Read(buffer []byte) (int, error) + func (file *File) Write(buffer []byte) (int, error) + type Namer interface + AddExtension func(extension string) + Name func() string + SearchRegexp func() *regexp.Regexp + type Reader interface + Collection func() Collection + File func() (*os.File, error) + type ReaderOption func(reader Reader) (Reader, error) + type Rotator interface + Rotate func(fileInfo os.FileInfo) bool + type Writer interface + File func() *os.File + Namer func() Namer + Reset func() + Rotate func() (*os.File, error) + type WriterOption func(writer Writer) (Writer, error)