application

package
v0.0.0-...-ecb1187 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const WeixinJSCodeApi = "https://api.weixin.qq.com/sns/jscode2session"
View Source
const WeixinTicketApi = "https://api.weixin.qq.com/cgi-bin/ticket/getticket"
View Source
const WeixinTokenApi = "https://api.weixin.qq.com/cgi-bin/token"

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Router     *mux.Router
	Logger     *logrus.Logger
	Middleware *middleware.Middleware
}

func NewApp

func NewApp() *App

func (*App) Initialize

func (a *App) Initialize()

func (*App) Run

func (a *App) Run(addr string)

type WeixinJSCode2SessionRet

type WeixinJSCode2SessionRet struct {
	OpenID     string `json:"openid"`
	SessionKey string `json:"session_key"`
	UnionID    string `json:"unionid"`
}

type WeixinRet

type WeixinRet struct {
	ErrCode int64  `json:"errcode"`
	ErrMsg  string `json:"errmsg"`
}

type WeixinSecretRet

type WeixinSecretRet struct {
	Secret string `json:"secret"`
}

type WeixinTicketRet

type WeixinTicketRet struct {
	Ticket    string `json:"ticket"`
	ExpiresIn int64  `json:"expires_in"`
}

type WeixinTokenRet

type WeixinTokenRet struct {
	AccessToken string `json:"access_token"`
	ExpiresIn   int64  `json:"expires_in"`
}

Jump to

Keyboard shortcuts

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