Versions in this module Expand all Collapse all v1 v1.0.2 Mar 5, 2021 v1.0.1 Jul 2, 2020 Changes in this version + const AccessTokenURL + type AuthBaseInfo struct + FuncInfo []AuthFuncInfo + type AuthFuncInfo struct + FuncscopeCategory ID + type AuthorizerInfo struct + Alias string + BusinessInfo struct{ ... } + HeadImg string + NickName string + PrincipalName string + QrcodeURL string + ServiceTypeInfo ID + UserName string + VerifyTypeInfo ID + type AuthrAccessToken struct + AccessToken string + Appid string + ExpiresIn int64 + RefreshToken string + type ComponentAccessToken struct + AccessToken string + ExpiresIn int64 + type Context struct + AccessTokenURL string + AppID string + AppSecret string + Cache cache.Cache + EncodingAESKey string + PayCertPEMBlock string + PayKey string + PayKeyPEMBlock string + PayMchID string + PayNotifyURL string + Request *http.Request + Token string + Writer http.ResponseWriter + func (ctx *Context) GetAccessToken() (accessToken string, err error) + func (ctx *Context) GetAccessTokenFromServer() (resAccessToken ResAccessToken, err error) + func (ctx *Context) GetAuthrAccessToken(appid string) (string, error) + func (ctx *Context) GetAuthrInfo(appid string) (*AuthorizerInfo, *AuthBaseInfo, error) + func (ctx *Context) GetComponentAccessToken() (string, error) + func (ctx *Context) GetJsAPITicketLock() *sync.RWMutex + func (ctx *Context) GetPreCode() (string, error) + func (ctx *Context) GetQuery(key string) (string, bool) + func (ctx *Context) GetQyAccessToken() (accessToken string, err error) + func (ctx *Context) GetQyAccessTokenFromServer() (resQyAccessToken ResQyAccessToken, err error) + func (ctx *Context) Query(key string) string + func (ctx *Context) QueryAuthCode(authCode string) (*AuthBaseInfo, error) + func (ctx *Context) RefreshAuthrToken(appid, refreshToken string) (*AuthrAccessToken, error) + func (ctx *Context) Render(bytes []byte) + func (ctx *Context) SetAccessTokenLock(l *sync.RWMutex) + func (ctx *Context) SetComponentAccessToken(verifyTicket string) (*ComponentAccessToken, error) + func (ctx *Context) SetGetAccessTokenFunc(f GetAccessTokenFunc) + func (ctx *Context) SetJsAPITicketLock(lock *sync.RWMutex) + func (ctx *Context) SetQyAccessTokenLock(l *sync.RWMutex) + func (ctx *Context) String(str string) + func (ctx *Context) XML(obj interface{}) + type GetAccessTokenFunc func(ctx *Context) (accessToken string, err error) + type ID struct + ID int + type ResAccessToken struct + AccessToken string + ExpiresIn int64 + type ResQyAccessToken struct + AccessToken string + ExpiresIn int64