rotate

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KB int = 1024
	MB int = KB * 1024
	GB int = MB * 1024
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(w *Writer) error

func WithFileCount

func WithFileCount(c int) Option

func WithFileOpErrHandler

func WithFileOpErrHandler(h func(err error)) Option

func WithFileSize

func WithFileSize(s int) Option

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter(path string, opts ...Option) (*Writer, error)

func (*Writer) Close

func (w *Writer) Close()

func (*Writer) Write

func (w *Writer) Write(e entry.Entry)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL