bytime

package
v0.0.0-...-fd2130c Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2018 License: Apache-2.0 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 {
	WritePath           string
	FileMode            os.FileMode
	DirectoryMode       os.FileMode
	Interval            time.Duration
	ArchiveFilePattern  string
	ArchiveKeepDuration time.Duration
	// contains filtered or unexported fields
}

func NewRotationWriter

func NewRotationWriter(init func(writer *Writer)) (*Writer, error)

func (*Writer) Close

func (writer *Writer) Close() error

func (*Writer) Write

func (writer *Writer) Write(buf []byte) (int, error)

Source Files

  • rotation.go

Jump to

Keyboard shortcuts

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