handlers

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 14 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 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