logic

package
v0.0.0-...-0bbac7a Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// 授权通过key
	PASS_KEY = "_pass"
	// 授权网关名称key
	AUTH_NAME_KEY = "auth_name_"
	// 签名参数key
	SIGN_KEY = sign.SIGN_KEY
	// uid
	UID_KEY       = "_uid"
	DEVICE_ID_KEY = "_device_id"
)

Variables

This section is empty.

Functions

func LookupBuilder

func LookupBuilder(authName string) (accessToken.Builder, *tp.Rerror)

LookupBuilder

func NewBusiness

func NewBusiness() *types.Business

NewBusiness 创建业务

func RegBuilder

func RegBuilder(authName string, fn accessToken.Builder)

RegBuilder 注册构建AccessToken的函数 注:若注册AccessToken的构建函数为nil,或重复注册,均会发生panic

func SupportAuthName

func SupportAuthName(authName string) bool

SupportAuthName 判断是否支持指定授权

Types

This section is empty.

Jump to

Keyboard shortcuts

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