config

package
v0.0.0-...-fa02bd6 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 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 Configuration

type Configuration struct {
	Timeout           int                 `json:"timeout"`
	Mailserver        string              `json:"mailserver"`
	Mailport          int                 `json:"mailport"`
	Mailfrom          string              `json:"mailfrom"`
	Mailonerror       bool                `json:"mailonerror"`
	Mailtoerror       string              `json:"mailtoerror"`
	Mailto            string              `json:"mailto"`
	Feeds             []ConfigurationFeed `json:"feeds"`
	Database          string              `json:"database"`
	GlobalIgnoreWords []string            `json:"globalignorewords"`
	Test              bool
}

func GetConfig

func GetConfig(f string) (*Configuration, error)

type ConfigurationFeed

type ConfigurationFeed struct {
	Title       string   `json:"title"`
	URL         string   `json:"url"`
	IgnoreWords []string `json:"ignorewords"`
}

Jump to

Keyboard shortcuts

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