Documentation ¶
Index ¶
- func New(directory string, namer file.Namer, rotator file.Rotator, ...) (file.Writer, error)
- func WithArchive() file.WriterOption
- func WithArchiveTarGZ() file.WriterOption
- func WithArchiveZIP() file.WriterOption
- func WithChangeShardErrorIgnore() file.WriterOption
- func WithChangeShardRepeatWrite() file.WriterOption
- func WithCheckDirectory(directoryPath string) file.WriterOption
- func WithFileCount(counter prometheus.Counter) file.WriterOption
- func WithWriteBytesLength(counter prometheus.Counter) file.WriterOption
- type ChangeShardErrorIgnore
- type ChangeShardRepeatWrite
- type FileCount
- type TarGZ
- type WriteBytesLength
- type Writer
- func (writer *Writer) Close() error
- func (writer *Writer) File() *os.File
- func (writer *Writer) Namer() file.Namer
- func (writer *Writer) OpenNewFile() (*os.File, error)
- func (writer *Writer) Reset()
- func (writer *Writer) Rotate() (*os.File, error)
- func (writer *Writer) Write(buffer []byte) (int, error)
- type ZIP
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithArchive ¶
func WithArchive() file.WriterOption
func WithArchiveTarGZ ¶
func WithArchiveTarGZ() file.WriterOption
func WithArchiveZIP ¶
func WithArchiveZIP() file.WriterOption
func WithChangeShardErrorIgnore ¶
func WithChangeShardErrorIgnore() file.WriterOption
func WithChangeShardRepeatWrite ¶
func WithChangeShardRepeatWrite() file.WriterOption
func WithCheckDirectory ¶
func WithCheckDirectory(directoryPath string) file.WriterOption
func WithFileCount ¶
func WithFileCount(counter prometheus.Counter) file.WriterOption
func WithWriteBytesLength ¶
func WithWriteBytesLength(counter prometheus.Counter) file.WriterOption
Types ¶
type ChangeShardErrorIgnore ¶
func NewChangeShardErrorIgnore ¶
func NewChangeShardErrorIgnore(writer file.Writer) *ChangeShardErrorIgnore
type ChangeShardRepeatWrite ¶
func NewChangeShardRepeatWrite ¶
func NewChangeShardRepeatWrite(writer file.Writer) *ChangeShardRepeatWrite
type FileCount ¶
func NewFileCount ¶
func NewFileCount(writer file.Writer, counter prometheus.Counter) *FileCount
type WriteBytesLength ¶
func NewWriteBytesLength ¶
func NewWriteBytesLength(writer file.Writer, counter prometheus.Counter) *WriteBytesLength
Click to show internal directories.
Click to hide internal directories.