rpcxauth

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

@Title @Description @Author Wangwengang 2021/5/31 下午6:35 @Update Wangwengang 2021/5/31 下午6:35

@Title @Description @Author Wangwengang 2021/6/8 下午2:15 @Update Wangwengang 2021/6/8 下午2:15

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(ctx context.Context, req *protocol.Message, token string) error

func GetRealIP added in v0.1.1

func GetRealIP(ctx context.Context) string

获取 nginx ip 地址

func GetRequestID added in v0.1.1

func GetRequestID(ctx context.Context) int64

func GetUserId

func GetUserId(ctx context.Context) int64

获取 用户ID

func GetUsername

func GetUsername(ctx context.Context) string

获取 用户昵称

Types

type TokenInfo

type TokenInfo struct {
	ID             string
	Username       string
	AuthorityId    string
	BundleId       string
	DevDesc        string
	DevUUID        string
	Flavors        string
	Language       string
	Platform       string
	ShumeiDeviceId string
}

Jump to

Keyboard shortcuts

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