Documentation ¶
Index ¶
- Constants
- type FileOutput
- type FileRotator
- func (rotator *FileRotator) CheckIfConfigSane() error
- func (rotator *FileRotator) CreateDirectory() error
- func (rotator *FileRotator) FileExists(file_no int) bool
- func (rotator *FileRotator) FilePath(file_no int) string
- func (rotator *FileRotator) Rotate() error
- func (rotator *FileRotator) WriteLine(line []byte) error
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 (*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
Click to show internal directories.
Click to hide internal directories.