# README
微信公众号 SDK 核心 package
微信公众号的处理逻辑都在这个 package 里面, 其他的模块都是在这个 package 基础上的再封装!
回调请求处理
一个回调地址(多个公众号可以共用一个回调地址)的 http 请求对应了一个 http handler(http.Handler, gin.HandlerFunc…),
这个 http handler 里面的主要逻辑是调用对应公众号的 core.Server 的 ServeHTTP 方法来处理回调请求,
core.Server.ServeHTTP 做签名的验证和消息解密, 然后调用 core.Server 的 core.Handler 属性的 ServeMsg 方法来处理消息(事件).
# Functions
NewClient 创建一个新的 Client.
No description provided by the author
NewDefaultAccessTokenServer 创建一个新的 DefaultAccessTokenServer, 如果 httpClient == nil 则默认使用 util.DefaultHttpClient.
No description provided by the author
NewServer 创建一个新的 Server.
No description provided by the author
# Constants
access_token 过期错误码(maybe!!!).
access_token 过期错误码.
No description provided by the author
# Variables
No description provided by the author
# Structs
AddExpressPathAction 轨迹列表.
No description provided by the author
No description provided by the author
Context 是 Handler 处理消息(事件)的上下文环境.
DefaultAccessTokenServer 实现了 AccessTokenServer 接口.
No description provided by the author
微信服务器推送过来的消息(事件)的合集.
微信服务器推送过来的消息(事件)的通用消息头.
No description provided by the author
ServeMux 是一个消息(事件)路由器, 同时也是一个 Handler 的实现.
Server 用于处理微信服务器的回调请求, 并发安全!
通常情况下一个 Server 实例用于处理一个公众号的消息(事件), 此时建议指定 oriId(原始ID) 和 appId(明文模式下无需指定) 用于约束消息(事件); 特殊情况下也可以一个 Server 实例用于处理多个公众号的消息(事件), 此时要求这些公众号的 token 是一样的, 并且 oriId 和 appId 必须设置为 "".
No description provided by the author
小程序订阅消息事件.
No description provided by the author
# Interfaces
access_token 中控服务器接口.
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author