Versions in this module Expand all Collapse all v0 v0.2.12 May 6, 2020 v0.2.11 Mar 3, 2020 v0.2.10 Mar 3, 2020 v0.2.9 Feb 27, 2020 Changes in this version + const AccessTokenURL + func PostXMLWithTLS(uri string, obj interface{}, ca, key string) ([]byte, error) + 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 + AppID string + AppSecret string + Cache cache.Cache + EncodingAESKey string + PayKey string + PayMchID string + PayNotifyURL string + Request *http.Request + RestyClient *resty.Client + 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) HTTPGet(uri string) ([]byte, error) + func (ctx *Context) HTTPPost(uri string, data string) ([]byte, error) + func (ctx *Context) PostFile(fieldname, filename, uri string) ([]byte, error) + func (ctx *Context) PostJSON(uri string, obj interface{}) ([]byte, error) + func (ctx *Context) PostJSONWithRespContentType(uri string, obj interface{}) ([]byte, string, error) + func (ctx *Context) PostMultipartForm(fields []MultipartFormField, uri string) (respBody []byte, err error) + func (ctx *Context) PostXML(uri string, obj interface{}) ([]byte, 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 MultipartFormField struct + Fieldname string + Filename string + IsFile bool + Value []byte + type ResAccessToken struct + AccessToken string + ExpiresIn int64 + type ResQyAccessToken struct + AccessToken string + ExpiresIn int64