alert

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alert

type Alert interface {
	Send(ctx context.Context, content string) error
	Close(ctx context.Context) error
}

func New

func New(module Module, cfg *Config) (a Alert, err error)

type Config

type Config struct {
	Module Module       `json:"module" yaml:"module"`
	Mail   *mail.Config `json:"mail" yaml:"mail"`
	HTTP   *http.Config `json:"http" yaml:"http"`
}

type Module

type Module string
const (
	ModuleMail Module = "mail"
	ModuleHTTP Module = "http"
	ModuleVX   Module = "vx"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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