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 WithCompressLZ4() file.WriterOption
- func WithFileCount(counter prometheus.Counter) file.WriterOption
- func WithWriteBytesLength(counter prometheus.Counter) file.WriterOption
- type ChangeShardErrorIgnore
- type ChangeShardRepeatWrite
- type FileCount
- type LZ4
- type TarGZ
- type WriteBytesLength
- type Writer
- 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 WithCompressLZ4 ¶
func WithCompressLZ4() 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
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) OpenNewFile ¶
Click to show internal directories.
Click to hide internal directories.