gonewsyslog

package
v0.0.0-...-91ede74 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GZIP archiveType = "gzip"
	BZ2              = "bz2"
	XZ               = "xz"
	NONE             = "none"
)

if you change it, should change conf/conf const, too.

Variables

This section is empty.

Functions

This section is empty.

Types

type Evaluate

type Evaluate func(info rotate.LogInfo, rule string) bool

type NewSyslogJob

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

func New

func New(name string, from string, to string, archiveTypeStr string, ext string, success string, failed string, pidPath string, rTerm string, rSize string, rCount int) (NewSyslogJob, error)

func (NewSyslogJob) Callback

func (this NewSyslogJob) Callback(_ context.Context)

func (NewSyslogJob) CanRotate

func (this NewSyslogJob) CanRotate(info rotate.LogInfo, _ context.Context) (bool, error)

func (NewSyslogJob) LogState

func (this NewSyslogJob) LogState(_ context.Context) (rotate.LogInfo, error)

func (NewSyslogJob) Rotate

func (this NewSyslogJob) Rotate(ctx context.Context) error

func (NewSyslogJob) Run

func (this NewSyslogJob) Run(ctx context.Context) rotate.Result

func (NewSyslogJob) String

func (this NewSyslogJob) String() string

func (NewSyslogJob) Test

func (this NewSyslogJob) Test(ctx context.Context) rotate.Result

Jump to

Keyboard shortcuts

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