app

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: May 28, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultMpLoginProxyURL = "https://api.weixin.qq.com/sns/"
View Source
const DefaultProxyURL = "https://api.weixin.qq.com/"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	WechatAppTokenURL          string
	WechatAppConfigLifeSpan    gokits.Duration
	WechatAppTokenLifeSpan     gokits.Duration
	WechatAppTokenTempLifeSpan gokits.Duration
	WechatAppProxyURL          string
	WechatAppMpLoginProxyURL   string
}

type QueryWechatAppToken

type QueryWechatAppToken struct {
	WechatAppToken
	Updated    string
	ExpireTime int64
}

func (*QueryWechatAppToken) GetExpireTime

func (q *QueryWechatAppToken) GetExpireTime() int64

func (*QueryWechatAppToken) GetUpdated

func (q *QueryWechatAppToken) GetUpdated() string

type Response

type Response struct {
	AccessToken string `json:"access_token"`
	ExpiresIn   int    `json:"expires_in"`
}

type WechatAppConfig

type WechatAppConfig struct {
	AppId     string
	AppSecret string
}

type WechatAppToken

type WechatAppToken struct {
	AppId       string `json:"appId"`
	AccessToken string `json:"token"`
	JsapiTicket string `json:"ticket"`
}

Jump to

Keyboard shortcuts

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