Documentation ¶
Index ¶
Constants ¶
View Source
const ( Aliyun = "Aliyun SMS" TencentCloud = "Tencent Cloud SMS" VolcEngine = "Volc Engine SMS" Huyi = "Huyi SMS" SubMail = "SubMail SMS" )
View Source
const (
API = "https://api.mysubmail.com/message/xsend"
)
Variables ¶
This section is empty.
Functions ¶
func GetMd5String ¶
Types ¶
type AliyunClient ¶
type AliyunClient struct {
// contains filtered or unexported fields
}
func GetAliyunClient ¶
func (*AliyunClient) SendMessage ¶
func (c *AliyunClient) SendMessage(param map[string]string, targetPhoneNumber ...string) error
type HuyiClient ¶
type HuyiClient struct {
// contains filtered or unexported fields
}
func GetHuyiClient ¶
func GetHuyiClient(appId string, appKey string, template string) (*HuyiClient, error)
func (*HuyiClient) SendMessage ¶
func (hc *HuyiClient) SendMessage(param map[string]string, targetPhoneNumber ...string) error
type SmsClient ¶
type SubMailClient ¶
type SubMailClient struct {
// contains filtered or unexported fields
}
func GetSubMailClient ¶
func GetSubMailClient(accessId string, accessKey string, templateId string) (*SubMailClient, error)
func (*SubMailClient) SendMessage ¶
func (c *SubMailClient) SendMessage(param map[string]string, targetPhoneNumber ...string) error
type TencentClient ¶
type TencentClient struct {
// contains filtered or unexported fields
}
func GetTencentClient ¶
func (*TencentClient) SendMessage ¶
func (c *TencentClient) SendMessage(param map[string]string, targetPhoneNumber ...string) error
type VolcClient ¶
type VolcClient struct {
// contains filtered or unexported fields
}
func GetVolcClient ¶
func GetVolcClient(accessId, accessKey, sign, templateId string, smsAccount []string) (*VolcClient, error)
func (*VolcClient) SendMessage ¶
func (c *VolcClient) SendMessage(param map[string]string, targetPhoneNumber ...string) error
Click to show internal directories.
Click to hide internal directories.