alert

package
v0.0.0-...-4e39a2f Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: BSD-2-Clause Imports: 2 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 {
	// Init returns an error if the confiugration is not valid
	Init() error

	// Send sends a message
	Send(message string) error
}

Alert is an interface that sends alerts

func Slack

func Slack(channel, url string) (Alert, error)

Slack will return a new Slack type as an Alert interface

func Stdout

func Stdout() (Alert, error)

Stdout will return a new Stdout type as an Alert interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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