Documentation
¶
Index ¶
- type ImageFrame
- type ImageResponse
- type PlatformProvider
- type TextFrame
- type TextResponse
- type VideoFrame
- type VideoResponse
- type VoiceFrame
- type VoiceResponse
- type WechatPlatformProvider
- func (wPP *WechatPlatformProvider) GetMeta() map[string]string
- func (wPP *WechatPlatformProvider) GetName() string
- func (wPP *WechatPlatformProvider) ReConfigure(f string) (bool, error)
- func (wPP *WechatPlatformProvider) SendMsg(msg *Protocol.Message) bool
- func (wPP *WechatPlatformProvider) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (wPP *WechatPlatformProvider) UpdateToken()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageFrame ¶
type ImageFrame struct {
MediaId string `json:"media_id"`
}
type TextResponse struct {
XMLName xml.Name `xml:"xml"`
ToUserName string `xml:"ToUserName"`
FromUserName string `xml:"FromUserName"`
CreateTime int64 `xml:"CreateTime"`
MsgType string `xml:"MsgType"`
Content string `xml:"Content"`
}
type ImageResponse ¶
type ImageResponse struct {
ToUser string `json:"touser"`
MsgType string `json:"msgtype"`
Image ImageFrame `json:"image"`
}
type PlatformProvider ¶
type TextResponse ¶
type VideoFrame ¶
type VideoResponse ¶
type VideoResponse struct {
ToUser string `json:"touser"`
MsgType string `json:"msgtype"`
Video VideoFrame `json:"video"`
}
type VoiceFrame ¶
type VoiceFrame struct {
MediaId string `json:"media_id"`
}
type VoiceResponse ¶
type VoiceResponse struct {
ToUser string `json:"touser"`
MsgType string `json:"msgtype"`
Voice VoiceFrame `json:"voice"`
}
type WechatPlatformProvider ¶
type WechatPlatformProvider struct {
// contains filtered or unexported fields
}
func CreateWechatPlatformProvider ¶
func CreateWechatPlatformProvider(f string) (*WechatPlatformProvider, error)
func (*WechatPlatformProvider) GetMeta ¶
func (wPP *WechatPlatformProvider) GetMeta() map[string]string
func (*WechatPlatformProvider) GetName ¶
func (wPP *WechatPlatformProvider) GetName() string
func (*WechatPlatformProvider) ReConfigure ¶
func (wPP *WechatPlatformProvider) ReConfigure(f string) (bool, error)
func (*WechatPlatformProvider) SendMsg ¶
func (wPP *WechatPlatformProvider) SendMsg(msg *Protocol.Message) bool
func (*WechatPlatformProvider) ServeHTTP ¶
func (wPP *WechatPlatformProvider) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*WechatPlatformProvider) UpdateToken ¶
func (wPP *WechatPlatformProvider) UpdateToken()
Click to show internal directories.
Click to hide internal directories.