Documentation
¶
Index ¶
- func CreateNewsXML(rxs *RecvXMLStruct, ArticleCount int, Articles []ArticlesListXMLStruct) string
- func CreateTextXML(rxs *RecvXMLStruct, content string) string
- func ValidateURL(w http.ResponseWriter, r *http.Request, token string) (string, bool)
- type ArticlesListXMLStruct
- type ArticlesXMLStruct
- type NewsXMLStruct
- type RecvXMLStruct
- type TextXMLStruct
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNewsXML ¶
func CreateNewsXML(rxs *RecvXMLStruct, ArticleCount int, Articles []ArticlesListXMLStruct) string
func CreateTextXML ¶
func CreateTextXML(rxs *RecvXMLStruct, content string) string
func ValidateURL ¶
Types ¶
type ArticlesListXMLStruct ¶
type ArticlesXMLStruct ¶
type ArticlesXMLStruct struct {
Item []ArticlesListXMLStruct
}
type NewsXMLStruct ¶
type RecvXMLStruct ¶
type RecvXMLStruct struct {
XMLName xml.Name `xml:`
ToUserName string `xml:"ToUserName"`
FromUserName string `xml:"FromUserName"`
CreateTime string `xml:"CreateTime"`
MsgType string `xml:"MsgType"`
Event string `xml:"Event"`
EventKey string `xml:"EventKey"`
Latitude string `xml:"Latitude"`
Ticket string `xml:"Ticket"`
Longitude string `xml:"Longitude"`
Precision string `xml:"Precision"`
Content string `xml:"Content"`
MsgID string `xml:"MsgId"`
PicURL string `xml:"PicUrl"`
MediaID string `xml:"MediaId"`
Format string `xml:"Format"`
Recognition string `xml:"Recognition"`
ThumbMediaID string `xml:"ThumbMediaId"`
LocationX string `xml:"Location_X"`
LocationY string `xml:"Location_Y"`
Scale string `xml:"Scale"`
Label string `xml:"Label"`
Title string `xml:"Title"`
Description string `xml:"Description"`
URL string `xml:"Url"`
}
func GetMSG ¶
func GetMSG(body []byte) (*RecvXMLStruct, error)
Click to show internal directories.
Click to hide internal directories.