notice

package
v0.0.0-...-b1ea8ad Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartNoticer

func StartNoticer(n Noticer)

Types

type HttpAPI

type HttpAPI struct{}

func (*HttpAPI) Send

func (h *HttpAPI) Send(msg *Message)

func (*HttpAPI) Serve

func (h *HttpAPI) Serve()

type Mail

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

func NewMail

func NewMail(timeout time.Duration) (m *Mail, err error)

func (*Mail) Send

func (m *Mail) Send(msg *Message)

func (*Mail) Serve

func (m *Mail) Serve()

type Message

type Message struct {
	Subject string
	Body    string
	To      []string
}

type Noticer

type Noticer interface {
	Serve()
	Send(*Message)
}

Jump to

Keyboard shortcuts

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