fileout

package
v1.0.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2015 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const RotatorMaxFiles = 1000

Variables

This section is empty.

Functions

This section is empty.

Types

type FileOutput

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

func (*FileOutput) GetNameByIP

func (out *FileOutput) GetNameByIP(ip string) string

func (*FileOutput) Init

func (out *FileOutput) Init(config outputs.MothershipConfig, topology_expire int) error

func (*FileOutput) PublishEvent

func (out *FileOutput) PublishEvent(ts time.Time, event common.MapStr) error

func (*FileOutput) PublishIPs

func (out *FileOutput) PublishIPs(name string, localAddrs []string) error

type FileRotator

type FileRotator struct {
	Path             string
	Name             string
	RotateEveryBytes uint64
	KeepFiles        int
	// contains filtered or unexported fields
}

func (*FileRotator) CheckIfConfigSane

func (rotator *FileRotator) CheckIfConfigSane() error

func (*FileRotator) CreateDirectory

func (rotator *FileRotator) CreateDirectory() error

func (*FileRotator) FileExists

func (rotator *FileRotator) FileExists(file_no int) bool

func (*FileRotator) FilePath

func (rotator *FileRotator) FilePath(file_no int) string

func (*FileRotator) Rotate

func (rotator *FileRotator) Rotate() error

func (*FileRotator) WriteLine

func (rotator *FileRotator) WriteLine(line []byte) error

Jump to

Keyboard shortcuts

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