sendcloud

package
v0.0.0-...-78a6345 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Email

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

func (*Email) Init

func (e *Email) Init(b []byte) error

func (*Email) Send

func (e *Email) Send(email string, title string, content string) error

type EmailConfig

type EmailConfig struct {
	Fake     bool   `json:"fake" yaml:"fake"` // 如果为true. 将直接返回,而不是真正的发送.
	ApiUser  string `json:"api_user" yaml:"api_user"`
	ApiKey   string `json:"api_key" yaml:"api_key"`
	From     string `json:"from" yaml:"from"`
	FromName string `json:"from_name" yaml:"from_name"`
}

type SendReply

type SendReply struct {
	StatusCode int    `json:"statusCode"`
	Message    string `json:"message"`
	Result     bool   `json:"result"`
}

Jump to

Keyboard shortcuts

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