Versions in this module Expand all Collapse all v1 v1.0.1 Apr 6, 2024 v1.0.0 Apr 6, 2024 Changes in this version + const AUTH_HEADER_VALUE + const Aliyun + const AmazonSNS + const AzureACS + const BaiduCloud + const GCCPAY + const HuaweiCloud + const Huyi + const Infobip + const MockSms + const Msg91 + const Netgsm + const OsonSms + const QuanmSms + const SUBMAIL + const SmsBao + const TencentCloud + const Twilio + const UCloud + const VolcEngine + const WSSE_HEADER_FORMAT + func GetMd5String(s string) string + func Md5(str string) string + func RandStringBytesCrypto(n int) (string, error) + type ACSClient struct + AccessToken string + Endpoint string + Message string + Sender string + func GetACSClient(accessToken string, message string, other []string) (*ACSClient, error) + func (a *ACSClient) SendMessage(param map[string]string, targetPhoneNumber ...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 AmazonSNSClient struct + func GetAmazonSNSClient(accessKeyID string, secretAccessKey string, template string, region []string) (*AmazonSNSClient, error) + func (a *AmazonSNSClient) SendMessage(param map[string]string, targetPhoneNumber ...string) error + type BaiduClient struct + func GetBceClient(accessId, accessKey, sign, template string, endpoint []string) (*BaiduClient, error) + func (c *BaiduClient) SendMessage(param map[string]string, targetPhoneNumber ...string) error + type Destination struct + To 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 InfobipClient struct + func GetInfobipClient(sender string, apiKey string, template string, baseUrl []string) (*InfobipClient, error) + func (c *InfobipClient) SendMessage(param map[string]string, targetPhoneNumber ...string) error + type InfobipConfigService struct + type Message struct + Destinations []Destination + From string + Text string + type MessageData struct + Messages []Message + 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 Msg91Client struct + func GetMsg91Client(senderId string, authKey string, templateId string) (*Msg91Client, error) + func (m *Msg91Client) SendMessage(param map[string]string, targetPhoneNumber ...string) error + type NetgsmClient struct + func GetNetgsmClient(accessId, accessKey, sign, template string) (*NetgsmClient, error) + func (c *NetgsmClient) SendMessage(param map[string]string, targetPhoneNumber ...string) error + type NetgsmResponse struct + Code string + Error string + JobID string + type OsonClient struct + Endpoint string + Message string + SecretAccessHash string + SenderID string + Sign string + func GetOsonClient(senderId, secretAccessHash, sign, message string) (*OsonClient, error) + func (c *OsonClient) SendMessage(param map[string]string, targetPhoneNumber ...string) (err error) + type OsonResponse struct + MsgId uint + SmscMsgId string + SmscMsgParts string + SmscMsgStatus string + Status string + Timestamp time.Time + TxnId string + type QuanmSMSClient struct + func GetQuanmSMSClient(openid string, apikey string, templateid string) (*QuanmSMSClient, error) + func (c *QuanmSMSClient) 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 SmsService struct + 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 UcloudClient struct + PrivateKey string + ProjectId string + PublicKey string + Sign string + Template string + func GetUcloudClient(publicKey string, privateKey string, sign string, template string, ...) (*UcloudClient, error) + func (c *UcloudClient) 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