Documentation ¶
Overview ¶
rpc服务列表
Index ¶
- func GetEtcdClientInstance()
- type ComponentVerifyTicketReq
- func (t *ComponentVerifyTicketReq) Decrypter(timeStamp, nonce, msgSign string, bts []byte)
- func (t *ComponentVerifyTicketReq) GetComponentAccessToken() (err error)
- func (t *ComponentVerifyTicketReq) GetPreAuthCode() (err error)
- func (t *ComponentVerifyTicketReq) PublishTest() (isPublishTest bool)
- func (t *ComponentVerifyTicketReq) RefreshToken(authorizerAppid string) (authorizerAccessToken string, expiresIn int, authorizerRefreshTokenNew string, ...)
- type EtcdClient
- type WxRelayServer
- func (t *WxRelayServer) GetOfficialAccountInfo(appid string) (oa *types.OfficialAccount, err error)
- func (t *WxRelayServer) GetOfficialAccountPlatformInfo() (oap *types.OfficialAccountPlatform, err error)
- func (t *WxRelayServer) RefreshComponentVerifyTicket(cvt *types.ComponentVerifyTicket) (code string, err error)
- func (t *WxRelayServer) StoreOfficialAccountInfo(oa *types.OfficialAccount) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEtcdClientInstance ¶
func GetEtcdClientInstance()
Types ¶
type ComponentVerifyTicketReq ¶
type ComponentVerifyTicketReq struct { AppId string `xml:"AppId"` CreateTime string `xml:"CreateTime"` InfoType string `xml:"InfoType"` ComponentVerifyTicket string `xml:"ComponentVerifyTicket"` AuthorizationCode string `xml:"AuthorizationCode"` }
func (*ComponentVerifyTicketReq) Decrypter ¶
func (t *ComponentVerifyTicketReq) Decrypter(timeStamp, nonce, msgSign string, bts []byte)
func (*ComponentVerifyTicketReq) GetComponentAccessToken ¶
func (t *ComponentVerifyTicketReq) GetComponentAccessToken() (err error)
func (*ComponentVerifyTicketReq) GetPreAuthCode ¶
func (t *ComponentVerifyTicketReq) GetPreAuthCode() (err error)
3、获取预授权码pre_auth_code DESC: 第三方平台通过自己的接口调用凭据(component_access_token)来获取用于授权流程准备的预授权码(pre_auth_code)
func (*ComponentVerifyTicketReq) PublishTest ¶
func (t *ComponentVerifyTicketReq) PublishTest() (isPublishTest bool)
func (*ComponentVerifyTicketReq) RefreshToken ¶
func (t *ComponentVerifyTicketReq) RefreshToken(authorizerAppid string) (authorizerAccessToken string, expiresIn int, authorizerRefreshTokenNew string, retcode int, err error)
5、获取(刷新)授权公众号的接口调用凭据 DESC: 通过authorizer_refresh_token来刷新公众号的接口调用凭据
type EtcdClient ¶
ETCD读写、监听相关操作
var (
EtcdClientInstance *EtcdClient
)
func (*EtcdClient) ForceMKDir ¶
func (t *EtcdClient) ForceMKDir(dir string) (retcode int, err error)
func (*EtcdClient) Watch ¶
func (t *EtcdClient) Watch(key string)
type WxRelayServer ¶
type WxRelayServer struct{}
func (*WxRelayServer) GetOfficialAccountInfo ¶
func (t *WxRelayServer) GetOfficialAccountInfo(appid string) (oa *types.OfficialAccount, err error)
获取公众号token信息
func (*WxRelayServer) GetOfficialAccountPlatformInfo ¶
func (t *WxRelayServer) GetOfficialAccountPlatformInfo() (oap *types.OfficialAccountPlatform, err error)
获取公众号平台基本信息
func (*WxRelayServer) RefreshComponentVerifyTicket ¶
func (t *WxRelayServer) RefreshComponentVerifyTicket(cvt *types.ComponentVerifyTicket) (code string, err error)
刷新component_verify_ticket
func (*WxRelayServer) StoreOfficialAccountInfo ¶
func (t *WxRelayServer) StoreOfficialAccountInfo(oa *types.OfficialAccount) (err error)
存储托管公众号的token相关信息
Click to show internal directories.
Click to hide internal directories.