backend

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: Unlicense Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	OK() error
	Soon() error
	Expired() error
}

func New

func New(conf Config, uni BackendUniversalConfig) (Backend, error)

type BackendUniversalConfig

type BackendUniversalConfig struct {
	DoomsdayURL string
	Logger      *logger.Logger
}

type Config

type Config struct {
	Type       string                 `yaml:"type"`
	Properties map[string]interface{} `yaml:"properties"`
}

type Shout

type Shout struct {
	// contains filtered or unexported fields
}

func (Shout) Expired

func (s Shout) Expired() error

func (Shout) OK

func (s Shout) OK() error

func (Shout) Soon

func (s Shout) Soon() error

type ShoutConfig

type ShoutConfig struct {
	URL      string `yaml:"url"`
	Topic    string `yaml:"topic"`
	Username string `yaml:"username"`
	Password string `yaml:"password"`
}

type Slack

type Slack struct {
	// contains filtered or unexported fields
}

func (Slack) Expired

func (s Slack) Expired() error

func (Slack) OK

func (s Slack) OK() error

func (Slack) Soon

func (s Slack) Soon() error

type SlackConfig

type SlackConfig struct {
	Webhook  string `yaml:"webhook"`
	NotifyOK bool   `yaml:"notify_ok"`
}

Jump to

Keyboard shortcuts

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