sms

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAliyunSmsClient added in v1.4.12

func GetAliyunSmsClient() *dysmsapi20170525.Client

GetAliyunSmsClient 获取smtp客户端

func GetTencentSmsClient added in v1.4.12

func GetTencentSmsClient() *sms.Client

GetTencentSmsClient 获取sms客户端

Types

type AliyunSMS

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

func NewAliyunSms

func NewAliyunSms(client *dysmsapi20170525.Client, accessId, accessSecret, region, endpoint, signature string) *AliyunSMS

func (*AliyunSMS) Close

func (m *AliyunSMS) Close()

func (*AliyunSMS) GetClient

func (m *AliyunSMS) GetClient() interface{}

GetClient 暴露原生client

func (*AliyunSMS) Send

func (m *AliyunSMS) Send(phones []string, templateId string, params map[string]string) error

func (*AliyunSMS) Setup

func (*AliyunSMS) Setup() error

func (*AliyunSMS) String

func (*AliyunSMS) String() string

type TencentCloudSMS

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

func NewTencentSms

func NewTencentSms(client *sms.Client, secretId, secretKey, appId, addr, region, alg, signature string) *TencentCloudSMS

func (*TencentCloudSMS) Close

func (m *TencentCloudSMS) Close()

func (*TencentCloudSMS) GetClient

func (m *TencentCloudSMS) GetClient() interface{}

GetClient 暴露原生client

func (*TencentCloudSMS) Send

func (m *TencentCloudSMS) Send(phones []string, templateId string, params map[string]string) error

func (*TencentCloudSMS) Setup

func (*TencentCloudSMS) Setup() error

func (*TencentCloudSMS) String

func (*TencentCloudSMS) String() string

Jump to

Keyboard shortcuts

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