Documentation ¶
Index ¶
- type Dao
- func (d *Dao) AccessToken(c context.Context) (res *wechat.AccessToken, err error)
- func (d *Dao) AddCacheAccessToken(c context.Context, data *wechat.AccessToken) (err error)
- func (d *Dao) CacheAccessToken(c context.Context) (data *wechat.AccessToken, err error)
- func (d *Dao) Qrcode(c context.Context, accessToken, arg string) (qrcode []byte, err error)
- func (d *Dao) RawAccessToken(c context.Context) (data *wechat.AccessToken, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
Dao dao struct.
func (*Dao) AccessToken ¶
AccessToken get data from cache if miss will call source method, then add to cache.
func (*Dao) AddCacheAccessToken ¶
AddCacheAccessToken add access token cache
func (*Dao) CacheAccessToken ¶
CacheAccessToken cache access token
func (*Dao) RawAccessToken ¶
RawAccessToken get wechat access token.
Click to show internal directories.
Click to hide internal directories.