alert

package
v0.0.0-...-b155b17 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package alert implements alert.

Index

Constants

This section is empty.

Variables

View Source
var (
	Email = &EmailType{}
)
View Source
var Manager = new(ManagerType)
View Source
var (
	Telegram = new(TelegramCli)
)

Functions

This section is empty.

Types

type EmailType

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

func (*EmailType) Send

func (e *EmailType) Send(to, toName, subject, content string) (err error)

func (*EmailType) Setup

func (e *EmailType) Setup()

type ManagerType

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

func (*ManagerType) Send

func (m *ManagerType) Send(to, toName, subject, content string) (err error)

func (*ManagerType) Setup

func (m *ManagerType) Setup()

type TelegramCli

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

func (*TelegramCli) Send

func (t *TelegramCli) Send(ctx context.Context, alertType, token, msg string) (err error)

func (*TelegramCli) SendAlert

func (t *TelegramCli) SendAlert(msg string) (err error)

func (*TelegramCli) Setup

func (t *TelegramCli) Setup()

Jump to

Keyboard shortcuts

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