notifier

package
v0.0.0-...-f506e31 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: EUPL-1.2 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Array with Notifier reference Add your notifier here to register it

Functions

This section is empty.

Types

type CampResp

type CampResp struct {
	Data struct {
		ID     int
		Status string
	}
	Message string
}

type ListmonkNotifier

type ListmonkNotifier struct {
	Enabled  bool
	BaseURL  string
	Lists    []int
	Username string
	Password string
}

func (*ListmonkNotifier) Name

func (n *ListmonkNotifier) Name() string

func (*ListmonkNotifier) Notify

func (n *ListmonkNotifier) Notify(event gocal.Event)

func (*ListmonkNotifier) Setup

func (n *ListmonkNotifier) Setup()

type MailNotifier

type MailNotifier struct {
	Enabled    bool
	Host       string
	Port       int
	Username   string
	Password   string
	EncryptTLS bool
	Sender     string
	Receivers  []string
}

func (*MailNotifier) Name

func (m *MailNotifier) Name() string

func (*MailNotifier) Notify

func (m *MailNotifier) Notify(event gocal.Event)

func (*MailNotifier) Setup

func (m *MailNotifier) Setup()

type MatrixNotifier

type MatrixNotifier struct {
	Enabled    bool
	Homeserver string
	Username   string
	Password   string
	Room       id.RoomID
}

func (*MatrixNotifier) Name

func (m *MatrixNotifier) Name() string

func (*MatrixNotifier) Notify

func (m *MatrixNotifier) Notify(event gocal.Event)

func (*MatrixNotifier) Setup

func (m *MatrixNotifier) Setup()

type Notifier

type Notifier interface {
	Name() string
	Setup()
	Notify(event gocal.Event)
}

Notifier Interface definition for a modulare Notifier structure

type TelegramNotifier

type TelegramNotifier struct {
	Enabled bool
	Token   string
	Chat    int64
}

func (*TelegramNotifier) Name

func (t *TelegramNotifier) Name() string

func (*TelegramNotifier) Notify

func (t *TelegramNotifier) Notify(event gocal.Event)

func (*TelegramNotifier) Setup

func (t *TelegramNotifier) Setup()

Jump to

Keyboard shortcuts

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