sms

package
v0.0.0-...-ccdf126 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CtyResult

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

func (*CtyResult) Error

func (me *CtyResult) Error() string

type CtySms

type CtySms struct {
	Username, Password, Url string
	Suffix                  string
}

func (*CtySms) Send

func (me *CtySms) Send(mobile, msg string) error

type MLSms

type MLSms struct {
	Username, Password string
	ApiKey, Url        string
	Suffix             string
}

美联短信发送(可发国际短信): http://www.5c.com.cn/

func (*MLSms) Send

func (me *MLSms) Send(mobile, msg string) error

type MobileSetting

type MobileSetting struct {
	Prefix      string
	Country     string
	PhoneLength int
}

type SmsEngine

type SmsEngine interface {
	Send(mobile string, msg string) error
}

type YpResult

type YpResult struct {
	Code   int    `json:"code"`
	Msg    string `json:"msg"`
	Result struct {
		Count int `json:"count"`
		Fee   int `json:"fee"`
		Sid   int `json:"sid"`
	}
	Detail string `json:"detail"`
}

func (*YpResult) Error

func (me *YpResult) Error() string

type YpSms

type YpSms struct {
	Apikey, Url string
	Suffix      string
}

func (*YpSms) Send

func (me *YpSms) Send(mobile, msg string) error

Jump to

Keyboard shortcuts

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