rotation

package
v0.0.0-...-bff5238 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

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

func NewWriter

func NewWriter(opts *WriterOptions) (*Writer, error)

func (*Writer) Close

func (self *Writer) Close()

func (*Writer) Write

func (self *Writer) Write(data []byte) (int, error)

type WriterOptions

type WriterOptions struct {
	Prefix     string
	MaxSize    int64
	MaxBackups int
	MaxAge     time.Duration
}

Jump to

Keyboard shortcuts

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