sender

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 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 ByApi

type ByApi interface {
	ByPush
}

type ByChat

type ByChat interface {
	ByPush
	To(to string, cc ...string)
}

func WrapGoNotifyChat

func WrapGoNotifyChat(chat notify.ByChat) ByChat

type ByEmail

type ByEmail interface {
	BySMS
	WithSubject(subject string)
	WithTag(tag string)
	WithNoTracking()
	SendHtml() error
}

func WrapGoNotifyEmail

func WrapGoNotifyEmail(email notify.ByEmail) ByEmail

type ByEmailWithAttachments

type ByEmailWithAttachments interface {
	ByEmail
	WithAttachments(attachments map[string][]byte)
}

type ByPush

type ByPush interface {
	WithBody(body string)
	Send() error
}

func WrapGoNotifyPush

func WrapGoNotifyPush(push notify.ByPush) ByPush

type BySMS

type BySMS interface {
	From(from string)
	ByChat
}

func WrapGoNotifySMS

func WrapGoNotifySMS(sms notify.BySMS) BySMS

type Stdout

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

func NewStdout

func NewStdout() *Stdout

func (*Stdout) From

func (s *Stdout) From(from string)

func (*Stdout) Send

func (s *Stdout) Send() error

func (*Stdout) SendHtml

func (s *Stdout) SendHtml() error

func (*Stdout) To

func (s *Stdout) To(to string, cc ...string)

func (*Stdout) UID

func (s *Stdout) UID() string

func (*Stdout) WithAttachments

func (s *Stdout) WithAttachments(attachments map[string][]byte)

func (*Stdout) WithBody

func (s *Stdout) WithBody(body string)

func (*Stdout) WithNoTracking

func (s *Stdout) WithNoTracking()

func (*Stdout) WithSubject

func (s *Stdout) WithSubject(subject string)

func (*Stdout) WithTag

func (s *Stdout) WithTag(tag string)

Directories

Path Synopsis
sms

Jump to

Keyboard shortcuts

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