model

package
v0.0.0-...-afd247e Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Close 关闭

func New

func New(c map[string]string) error

New 传入config

Types

type Email

type Email struct {
	Sender     string   `json:"sender"`
	Recipients []string `json:"recipients"`
	Subject    string   `json:"subject"`
	HTMLBody   string   `json:"htmlBody"`
	TextBody   string   `json:"textBody"`
	CharSet    string   `json:"charSet"`
}

Email 邮件

func (*Email) Send

func (e *Email) Send() error

Send 发送邮件

type Txt

type Txt struct {
	Number  string `json:"number"`
	Message string `json:"message"`
}

Txt 电话短信

func (*Txt) Send

func (t *Txt) Send() error

Send 发送短信

Jump to

Keyboard shortcuts

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