config

package
v0.0.0-...-defe239 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: Apache-2.0 Imports: 6 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 {
	LogLevel      string        `yaml:"log_level"`
	LogTimestamp  bool          `yaml:"log_timestamp"`
	MaxAge        time.Duration `yaml:"max_age"`
	Notifications []*Notification
}

func Get

func Get() *Config

type Feed

type Feed struct {
	Name       string
	URL        string
	LastUpdate time.Time `yaml:"last_check"`
}

type Notification

type Notification struct {
	Name     string
	Feeds    []*Feed
	Webhooks []*Webhook
}

type Webhook

type Webhook struct {
	URL      string
	Template string
}

Jump to

Keyboard shortcuts

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