sender

package
v0.0.0-...-fda6f0b Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2018 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DingTalk

type DingTalk struct {
}

func NewDingTalk

func NewDingTalk() *DingTalk

func (*DingTalk) Send

func (d *DingTalk) Send(token string, content string) error

type QCloudSMS

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

func NewQCloudSMS

func NewQCloudSMS(cfg config.QCloudSms) *QCloudSMS

func (*QCloudSMS) GetTemplate

func (this *QCloudSMS) GetTemplate(id uint) (*qcloudsms.Template, error)

func (*QCloudSMS) Send

func (this *QCloudSMS) Send(phoneNumber string, content string, way ...string) error

发送通知

func (*QCloudSMS) SendSms

func (this *QCloudSMS) SendSms(phoneNumber string, content string, tpl ...int) error

发送短信

func (*QCloudSMS) SendSmsWithTpl

func (this *QCloudSMS) SendSmsWithTpl(phoneNumber string, params []string, tpl ...int) error

使用模板发送短信

func (*QCloudSMS) SendVoice

func (this *QCloudSMS) SendVoice(phoneNumber string, content string) error

发送语音通知

func (*QCloudSMS) SendVoiceWithTpl

func (this *QCloudSMS) SendVoiceWithTpl(phoneNumber string, params []string, tpl ...int) error

发送语音通知

func (*QCloudSMS) SendWithTpl

func (this *QCloudSMS) SendWithTpl(phoneNumber string, params []string, args ...interface{}) error

发送通知

type Weixin

type Weixin struct {
	CorpID         string
	Secret         string
	AgentID        string
	EncodingAESKey string
	// contains filtered or unexported fields
}

func NewWeixin

func NewWeixin(corpId, secret string) *Weixin

func (Weixin) Auth

func (wx Weixin) Auth(echostr string) ([]byte, error)

func (Weixin) GetAccessToken

func (wx Weixin) GetAccessToken()

GetAccessToken 从微信获取 AccessToken

func (Weixin) Send

func (wx Weixin) Send(tos string, message string) error

Jump to

Keyboard shortcuts

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