Documentation ¶
Index ¶
- func DecryptRsa(inputString string) string
- func InitConfig(cfg string) error
- type GlobalConfig
- type HttpConfig
- type MailConfig
- type MailInputObj
- type MailRequestObj
- type MailResultObj
- type MailResultOutputObj
- type MailResultOutputs
- type SendMailObj
- type SenderConfig
- type SmsInputObj
- type SmsRequest
- type SmsRequestObj
- type SmsResponse
- type SmsResponseObj
- type SmsResultObj
- type SmsResultOutputObj
- type SmsResultOutputs
- type SmsSendStatusObj
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptRsa ¶
func InitConfig ¶
Types ¶
type GlobalConfig ¶
type GlobalConfig struct { Http *HttpConfig `json:"http"` Mail *MailConfig `json:"mail"` }
func Config ¶
func Config() *GlobalConfig
type HttpConfig ¶
type MailConfig ¶
type MailConfig struct { Enable bool `json:"enable"` Sender []*SenderConfig `json:"sender"` }
type MailInputObj ¶
type MailInputObj struct { CallbackParameter string `json:"callbackParameter"` SenderMail string `json:"senderMail"` SenderMailServer string `json:"senderMailServer"` SenderPassword string `json:"senderPassword"` To string `json:"to"` Subject string `json:"subject"` Content string `json:"content"` SSL string `json:"ssl"` }
type MailRequestObj ¶
type MailRequestObj struct { RequestId string `json:"requestId"` Inputs []MailInputObj `json:"inputs"` }
type MailResultObj ¶
type MailResultObj struct { ResultCode string `json:"resultCode"` ResultMessage string `json:"resultMessage"` Results MailResultOutputs `json:"results"` }
type MailResultOutputObj ¶
type MailResultOutputs ¶
type MailResultOutputs struct {
Outputs []MailResultOutputObj `json:"outputs"`
}
type SendMailObj ¶
type SenderConfig ¶
type SmsInputObj ¶
type SmsInputObj struct { CallbackParameter string `json:"callbackParameter"` SecretId string `json:"secretId"` SecretKey string `json:"secretKey"` SmsSdkAppId string `json:"smsSdkAppId"` TemplateId string `json:"templateId"` Sender string `json:"sender"` To string `json:"to"` Content string `json:"content"` }
type SmsRequest ¶
type SmsRequestObj ¶
type SmsRequestObj struct { RequestId string `json:"requestId"` Inputs []SmsInputObj `json:"inputs"` }
type SmsResponse ¶
type SmsResponse struct {
Response SmsResponseObj `json:"Response"`
}
type SmsResponseObj ¶
type SmsResponseObj struct { RequestId string `json:"RequestId"` SendStatusSet []*SmsSendStatusObj `json:"SendStatusSet"` }
type SmsResultObj ¶
type SmsResultObj struct { ResultCode string `json:"resultCode"` ResultMessage string `json:"resultMessage"` Results SmsResultOutputs `json:"results"` }
type SmsResultOutputObj ¶
type SmsResultOutputs ¶
type SmsResultOutputs struct {
Outputs []SmsResultOutputObj `json:"outputs"`
}
Click to show internal directories.
Click to hide internal directories.