notification

package
v0.0.0-...-dcb1143 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel interface {
	Notify(endpoint *url.URL, httpCode int, body []byte, begin time.Time, end time.Time) error
}

type EmailChannel

type EmailChannel struct {
}

func NewEmailChannel

func NewEmailChannel() *EmailChannel

func (*EmailChannel) Notify

func (ec *EmailChannel) Notify(endpoint *url.URL, httpCode int, body []byte, begin time.Time, end time.Time) error

type Notificator

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

func NewNotificator

func NewNotificator(channels ...Channel) *Notificator

func (*Notificator) Notify

func (n *Notificator) Notify(endpoint *url.URL, httpCode int, body []byte, begin time.Time, end time.Time) error

Jump to

Keyboard shortcuts

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