utils

package
v0.0.0-...-5808d2a Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JWT *jwt.JWT

Functions

func GenPassword

func GenPassword(pwd string, sale string) string

func GetAuthModel

func GetAuthModel(ctx *gin.Context) request.AuthJWT

GetAuthModel GetAuthModel

func InitJWT

func InitJWT()

func Md5Encode

func Md5Encode(str string) string

获取md5

func NewRCache

func NewRCache() (cache *ristretto.Cache, err error)

func RPCAuth

func RPCAuth(token string, mt map[string]string) func(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error

func SingleJoiningSlash

func SingleJoiningSlash(a, b string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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