notify

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultFrom

func DefaultFrom(from string)

func DefaultSubject

func DefaultSubject(subject string)

func DefaultURL

func DefaultURL(u string)

func SendEmail

func SendEmail(opts ...Option) error

Types

type EmailContent

type EmailContent struct {
	Type  EmailType `json:"type"`
	Value string    `json:"value"`
}

type EmailType

type EmailType = string
const (
	TypePlain EmailType = "text/plain"
	TypeHtml  EmailType = "text/html"
)

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithContent

func WithContent(_type EmailType, content string) Option

func WithFrom

func WithFrom(from string) Option

func WithSubject

func WithSubject(subject string) Option

func WithTo

func WithTo(to string) Option

func WithURL

func WithURL(url string) Option

Source Files

  • email.go

Jump to

Keyboard shortcuts

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