service

package
v0.0.0-...-9267d5d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(r *http.Request, w http.ResponseWriter, token string) (*client, error)

Types

type Base

type Base struct {
	FromUserName CDATAText
	ToUserName   CDATAText
	MsgType      CDATAText
	CreateTime   CDATAText
}

func (*Base) InitBaseData

func (b *Base) InitBaseData(w *client, msgtype string)

type CDATAText

type CDATAText struct {
	Text string `xml:",innerxml"`
}

type TextMessage

type TextMessage struct {
	XMLName xml.Name `xml:"xml"`
	Base
	Content CDATAText
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址