alert

package module
v0.0.0-...-08d4ae4 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: LGPL-2.1 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HtmlTmpl = `
<!DOCTYPE html>
<html>
<head>
</head>
<body>

<pre>%s</pre>
<pre>%s</pre>

</body>
</html>
`

Functions

func Add

func Add(module string, rule *Rule)

func Init

func Init(opts ...Option)

func SendMail

func SendMail(conn redis.Conn, module, subject, body string, to ...string) (e error)

func SubjectStr

func SubjectStr() (str string, ok bool)

内置一个,也可以自定义

Types

type Option

type Option func(*Options)

func From

func From(from string) Option

func Password

func Password(password string) Option

type Options

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

type Rule

type Rule struct {
	Minutes int
	Times   int
}

Jump to

Keyboard shortcuts

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