Versions in this module Expand all Collapse all v1 v1.0.2 Jul 11, 2023 v1.0.1 Jul 11, 2023 Changes in this version + const AUTH_HEADER_VALUE + const Aliyun + const GCCPAY + const HuaweiCloud + const Huyi + const MockSms + const SUBMAIL + const SmsBao + const TencentCloud + const Twilio + const VolcEngine + const WSSE_HEADER_FORMAT + func GetMd5String(s string) string + func Md5(str string) string + func RandStringBytesCrypto(n int) (string, error) + type AliyunClient struct + func GetAliyunClient(accessId string, accessKey string, sign string, template string) (*AliyunClient, error) + func (c *AliyunClient) SendMessage(param map[string]string, targetPhoneNumber ...string) error + type AliyunResult struct + Message string + RequestId string + type GCCPAYClient struct + func GetGCCPAYClient(clientname string, secret string, template string) (*GCCPAYClient, error) + func (c *GCCPAYClient) SendMessage(param map[string]string, targetPhoneNumber ...string) error + type HuaweiClient struct + func GetHuaweiClient(accessId string, accessKey string, sign string, template string, ...) (*HuaweiClient, error) + func (c *HuaweiClient) SendMessage(param map[string]string, targetPhoneNumber ...string) error + type HuyiClient struct + func GetHuyiClient(appId string, appKey string, template string) (*HuyiClient, error) + func (hc *HuyiClient) SendMessage(param map[string]string, targetPhoneNumber ...string) error + type Mocker struct + func NewMocker(accessId, accessKey, sign, templateId string, smsAccount []string) (*Mocker, error) + func (m *Mocker) SendMessage(param map[string]string, targetPhoneNumber ...string) error + type SmsBaoClient struct + func GetSmsbaoClient(username string, apikey string, sign string, template string, other []string) (*SmsBaoClient, error) + func (c *SmsBaoClient) SendMessage(param map[string]string, targetPhoneNumber ...string) error + type SmsClient interface + SendMessage func(param map[string]string, targetPhoneNumber ...string) error + func NewSmsClient(provider string, accessId string, accessKey string, sign string, ...) (SmsClient, error) + type SubmailClient struct + func GetSubmailClient(appid string, signature string, project string) (*SubmailClient, error) + func (c *SubmailClient) SendMessage(param map[string]string, targetPhoneNumber ...string) error + type SubmailResult struct + Code int + Msg string + Status string + type TencentClient struct + func GetTencentClient(accessId string, accessKey string, sign string, templateId string, ...) (*TencentClient, error) + func (c *TencentClient) SendMessage(param map[string]string, targetPhoneNumber ...string) error + type TwilioClient struct + func GetTwilioClient(accessId string, accessKey string, template string) (*TwilioClient, error) + func (c *TwilioClient) SendMessage(param map[string]string, targetPhoneNumber ...string) error + type VolcClient struct + func GetVolcClient(accessId, accessKey, sign, templateId string, smsAccount []string) (*VolcClient, error) + func (c *VolcClient) SendMessage(param map[string]string, targetPhoneNumber ...string) error