config

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Alarm

func Alarm() *alarm.Alarm

func Logger

func Logger() *logger.Logger

Types

type Config

type Config struct {
	Name          string   `yaml:"name"`
	Mailer        string   `yaml:"mailer"`
	Keepers       []string `yaml:"keepers"`
	reader.Config `yaml:",inline"`
	Rotate        Rotate `yaml:"rotate"`
	//       filePath  collectorId   key    value
	Files map[string]map[string]map[string]interface{} `yaml:"files"`
}

func Get

func Get() Config

type Rotate

type Rotate struct {
	Time string   `yaml:"time"`
	Cmd  []string `yaml:"cmd"`
}

Jump to

Keyboard shortcuts

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