handlers

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Email

type Email struct {
	Host           string
	Port           int
	Username       string
	Password       string
	From           string
	DefaultSubject string
}

Email used to configure common params for sending email

func (Email) EchoHandler

func (e Email) EchoHandler(c echo.Context) error

EchoHandler sends email per each incoming http request

type IncidentIO added in v0.4.0

type IncidentIO struct {
	URL          string
	Token        string
	DefaultTitle string
}

IncidentIO used to configure common params for creating alerts

func (IncidentIO) EchoHandler added in v0.4.0

func (i IncidentIO) EchoHandler(c echo.Context) error

EchoHandler creates an incident.io alert per each incoming http request

type Slack

type Slack struct {
	Token string
	// contains filtered or unexported fields
}

Slack used to configure common params for posting messages

func (Slack) EchoHandler

func (s Slack) EchoHandler(c echo.Context) error

EchoHandler posts slack message per each incoming http request

Jump to

Keyboard shortcuts

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