config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitCfg

func InitCfg(p string) error

Types

type Config

type Config struct {
	Name          string
	MaxProcs      int  `yaml:"max_procs"`
	SysInfo       bool `yaml:"sys_info"`
	SysInfoDuring int  `yaml:"sys_info_during"`
	Input         []SingleConfig
	Output        outputConfig
	SnapShot      struct {
		Enable         bool
		SnapshotDir    string `yaml:"snapshot_dir"`
		SnapShotDuring int    `yaml:"snapshot_during"`
	}
}

func GetConfig

func GetConfig() *Config

type SingleConfig

type SingleConfig struct {
	LogDir        []string `yaml:"log_path"`
	Types         string
	Exclude       []string `yaml:"exclude_lines"`
	Include       []string `yaml:"include_lines"`
	ExcludeFiles  []string `yaml:"exclude_files"`
	MaxBytes      int      `yaml:"max_bytes"`
	TailFiles     bool     `yaml:"tail_files"`
	ScanFrequency int      `yaml:"scan_frequency"`
	CloseInactive int      `yaml:"close_inactive"`
	Fields        string
	Multiline     struct {
		Pattern  string
		MaxLines int `yaml:"max_lines"`
	}
}

Jump to

Keyboard shortcuts

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