libs

package
v0.0.0-...-ba14579 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

rpc服务列表

Index

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

type EtcdClient struct {
	KApi client.KeysAPI
}

ETCD读写、监听相关操作

var (
	EtcdClientInstance *EtcdClient
)

func (*EtcdClient) ForceMKDir

func (t *EtcdClient) ForceMKDir(dir string) (retcode int, err error)

func (*EtcdClient) Get

func (t *EtcdClient) Get(key string) (pairs map[string]string, retcode int, err error)

读取键值对

func (*EtcdClient) Put

func (t *EtcdClient) Put(key string, value string, ttl int) (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相关信息

Jump to

Keyboard shortcuts

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