notification

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: MIT Imports: 9 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 {
	Smtp   SMTPConfig
	Gotify GotifyConfig
}

Config holds the configuration for the eMail notification about new Hauk sessions

type GotifyConfig

type GotifyConfig struct {
	Enabled  bool
	URL      string
	AppToken string
	Priority int
}

type Notifier

type Notifier interface {
	NotifyNewSession(topic string, URL string)
}

Notifier can send email notifications about events in the mapper

func New

func New(config Config) Notifier

New returns a new Notifier instance

type SMTPConfig

type SMTPConfig struct {
	Enabled  bool
	Host     string
	Port     int
	From     string
	To       string
	Login    string
	Password string
}

Jump to

Keyboard shortcuts

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