game

package
Version: v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Appid  string
	Secret string
	Token  *utils.Token
	Hook   utils.Hook
}

func New

func New(appid, secret string, Hook ...utils.Hook) *App

New 新建wechat Hook 处理accesstoken的逻辑

func (*App) Cloudbase

func (a *App) Cloudbase() *module.Cloudbase

Cloudbase 云开发

func (*App) DataAnalysis

func (a *App) DataAnalysis() *module.DataAnalysis

DataAnalysis 数据分析

func (*App) Gamematch

func (a *App) Gamematch() *module.Gamematch

Gamematch 对局匹配

func (*App) Get

func (a *App) Get(path string, params utils.Query, withAccessToken ...bool) ([]byte, error)

Get

func (*App) GetAccessToken

func (a *App) GetAccessToken(reflush ...bool) *utils.Token

GetAccessToken 获取accessToken 不建议暴露使用

func (*App) GetAccessTokenSafety

func (a *App) GetAccessTokenSafety(reflush bool) string

GetAccessTokenSafety 获取公开的accessToken

func (*App) GetAccessTokenWithHook

func (a *App) GetAccessTokenWithHook(reflush ...bool) *utils.Token

GetAccessTokenWithHook 获取accessToken 不建议暴露使用

func (*App) GetConfig

func (a *App) GetConfig() utils.Config

func (*App) LockStep

func (a *App) LockStep() *module.LockStep

LockStep 帧同步

func (*App) Login

func (a *App) Login() *module.Login

Login 用户

func (*App) PostBody

func (a *App) PostBody(path string, body []byte, withAccessToken ...bool) ([]byte, error)

Post

func (*App) SafetyControlCapability

func (a *App) SafetyControlCapability() *module.SafetyControlCapability

SafetyControlCapability 安全风控

func (*App) Storage

func (a *App) Storage() *module.Storage

Storage 开放数据

func (*App) SubscribeMessage

func (a *App) SubscribeMessage() *module.SubscribeMessage

SubscribeMessage 订阅消息

func (*App) UpdatableMessage

func (a *App) UpdatableMessage() *module.UpdatableMessage

UpdatableMessage 动态消息

func (a *App) UrlLink() *module.UrlLink

UrlLink url link

func (*App) UrlScheme

func (a *App) UrlScheme() *module.UrlScheme

UrlScheme scheme

func (*App) Wxacode

func (a *App) Wxacode() *module.Wxacode

Wxacode 小程序码

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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