wechat

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

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 New

func New(c *conf.Config) (d *Dao)

New new dao.

func (*Dao) AccessToken

func (d *Dao) AccessToken(c context.Context) (res *wechat.AccessToken, err error)

AccessToken get data from cache if miss will call source method, then add to cache.

func (*Dao) AddCacheAccessToken

func (d *Dao) AddCacheAccessToken(c context.Context, data *wechat.AccessToken) (err error)

AddCacheAccessToken add access token cache

func (*Dao) CacheAccessToken

func (d *Dao) CacheAccessToken(c context.Context) (data *wechat.AccessToken, err error)

CacheAccessToken cache access token

func (*Dao) Qrcode

func (d *Dao) Qrcode(c context.Context, accessToken, arg string) (qrcode []byte, err error)

Qrcode get qrcode.

func (*Dao) RawAccessToken

func (d *Dao) RawAccessToken(c context.Context) (data *wechat.AccessToken, err error)

RawAccessToken get wechat access token.

Jump to

Keyboard shortcuts

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