app

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2025 License: MIT Imports: 5 Imported by: 0

README

移动应用

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

App 移动应用

func New

func New(appId, appSecret, token, aesKey string, opts ...Option) *App

func (*App) AccessToken

func (app *App) AccessToken() (contracts.AccessToken, error)

func (*App) AccessTokenCacheKey

func (app *App) AccessTokenCacheKey() string

func (*App) AesKey

func (app *App) AesKey() string

func (*App) AppId

func (app *App) AppId() string

func (*App) AppSecret

func (app *App) AppSecret() string

func (*App) Cache

func (app *App) Cache() (cache.Cache, string)

func (*App) ComponentAccessToken

func (app *App) ComponentAccessToken() string

func (*App) ComponentAppId

func (app *App) ComponentAppId() string

func (*App) IsOpenPlatform

func (app *App) IsOpenPlatform() bool

func (*App) OAuth

func (app *App) OAuth() *oauth.OAuth

func (*App) PlatformType added in v0.1.6

func (app *App) PlatformType() string

func (*App) Token

func (app *App) Token() string

type Option

type Option func(*option)

func WithCache

func WithCache(cache cache.Cache) Option

WithCache 设置缓存

func WithCacheKeyPrefix

func WithCacheKeyPrefix(cacheKeyPrefix string) Option

WithCacheKeyPrefix 设置缓存key前缀

func WithLocker

func WithLocker(locker lock.Locker) Option

WithLocker 设置锁

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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