go_sms_sender

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: Apache-2.0 Imports: 8 Imported by: 3

README

go-sms-sender

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliyunClient

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

func GetAliyunClient

func GetAliyunClient(accessId, accessKey, sign, region, template string) *AliyunClient

func (*AliyunClient) SendMessage

func (c *AliyunClient) SendMessage(param map[string]string, targetPhoneNumber ...string)

type SmsClient

type SmsClient interface {
	SendMessage(param map[string]string, targetPhoneNumber ...string)
}

func NewSmsClient

func NewSmsClient(provider, accessId, accessKey, sign, region, template string, other ...string) SmsClient

type SmsError

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

func (SmsError) Error

func (e SmsError) Error() string

type TencentClient

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

func GetTencentClient

func GetTencentClient(accessId, accessKey, sign, region, templateId string, appId []string) *TencentClient

func (*TencentClient) SendMessage

func (c *TencentClient) SendMessage(param map[string]string, targetPhoneNumber ...string)

type VolcClient added in v0.0.3

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

func GetVolcClient added in v0.0.3

func GetVolcClient(accessId, accessKey, sign, region, templateId string, smsAccount []string) *VolcClient

func (*VolcClient) SendMessage added in v0.0.3

func (c *VolcClient) SendMessage(param map[string]string, targetPhoneNumber ...string)

Jump to

Keyboard shortcuts

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