config

package
v0.1.0-pre1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Presets []Preset
	Smtp    *SMTPReporter
	Webhook *WebhookReporter
}

func LoadConfiguration

func LoadConfiguration(p string) (*Config, error)

func (Config) GetPaths

func (c Config) GetPaths() []string

func (Config) GetReporters

func (c Config) GetReporters() reporter.ChainReporter

type Preset

type Preset struct {
	Paths    []string `toml:"paths"`
	Ignores  []string `toml:"ignores"`
	Clamav   *string  `toml:"clamav"`
	Database *string  `toml:"database"`
}

type SMTPReporter

type SMTPReporter struct {
	Username      string   `toml:"username"`
	Password      string   `toml:"password"`
	Host          string   `toml:"host"`
	RecipientList []string `toml:"recipients"`
	FromAddress   *string  `toml:"from-address"`
	Topic         *string  `toml:"topic"`
}

type WebhookReporter

type WebhookReporter struct {
	Url string `toml:"url"`
}

Jump to

Keyboard shortcuts

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