utils

package
v0.0.0-...-e49a844 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const JWTPayloadKey = "JWT_PAYLOAD"

Variables

View Source
var AccessExpire int64
View Source
var AccessSecret string

Functions

func GetEnv

func GetEnv(key string, def string) string

GetEnv 获取环境变量

func Obtain

func Obtain(bean interface{}) interface{}

Obtain 获取结构体指针实例

func Register

func Register(bean interface{}) error

Register 将结构类实例指针注册到容器中

func UserInfo

func UserInfo(c *gin.Context) string

UserInfo 解析用户信息

Types

This section is empty.

Jump to

Keyboard shortcuts

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