rotatelog

package
v0.0.0-...-612bd03 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	// GetFilename returns filename by current time
	GetFilename(t time.Time) (string, error)
}

type Notifier

type Notifier interface {
	// OnOpenFile is called when opened new files
	OnOpenFile(file *os.File)
}

type Writer

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

func New

func New(handler Handler) *Writer

func (*Writer) Write

func (w *Writer) Write(p []byte) (n int, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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