Documentation ¶
Index ¶
- Variables
- func DetailWord(word, k string) (string, error)
- func GetCreditCode()
- func Go(name string) error
- func InitMail(api, pub string)
- func Loop() error
- func ReadInput() error
- func SendMail(to, title, content string) error
- func WriteInfo(i, j int, name, ct string) error
- type AliKeyValuePair
- type AliResponse
- type AliyunClient
- type ByKey
- type DWRPronunce
- type DWRResults
- type DWRSyllable
- type DWResult
- type DetailWordResults
- type DnspodClient
- type Result
- type ResultData
- type Status
Constants ¶
This section is empty.
Variables ¶
View Source
var ApiKey = ""
ApiKey of mailgun
View Source
var ErrBadStatus = errors.New("status is not 1")
ErrBadStatus is a error status for dnspod
View Source
var Keys = []string{}
Keys is api token for word
View Source
var PubKey = ""
PubKey of mailgun
Functions ¶
Types ¶
type AliKeyValuePair ¶
AliKeyValuePair to sort arguments
type AliResponse ¶
type AliyunClient ¶
AliyunClient defines a client
func NewAliyunClient ¶
func NewAliyunClient(id, secret string) *AliyunClient
NewAliyunClient returns a new client
func (*AliyunClient) ModifyRecord ¶
func (ali *AliyunClient) ModifyRecord(subDomain, domain, value, recordId string) error
type DWRPronunce ¶
type DWRPronunce struct {
All string `json:"all"`
}
type DWRResults ¶
type DWRResults struct {
Result []DWResult
}
type DWRSyllable ¶
DWRSyllable
type DetailWordResults ¶
type DetailWordResults struct { Results []DWResult `json:"results"` Syllable DWRSyllable `json:"syllables"` Pronunce DWRPronunce `json:"pronunciation"` }
DetailWordResults holds result and pronucncation of word
type DnspodClient ¶
type DnspodClient struct {
Token string
}
DnspodClient defines a client
func NewDnspodClient ¶
func NewDnspodClient(token string) *DnspodClient
NewDnspodClient returns a new client
func (*DnspodClient) ModifyRecord ¶
func (d *DnspodClient) ModifyRecord(sub, domain, nip string) error
ModifyRecord is a demo
type Result ¶
type Result struct { Msg string `json:"message"` Status int `json:"status"` Result []ResultData `json:"results"` }
Result is response json
type ResultData ¶
ResultData is response json
Click to show internal directories.
Click to hide internal directories.