Documentation ¶
Index ¶
- Variables
- func GenPassword(pwd string, sale string) string
- func GetAuthModel(ctx *gin.Context) request.AuthJWT
- func InitJWT()
- func Md5Encode(str string) string
- func NewRCache() (cache *ristretto.Cache, err error)
- func RPCAuth(token string, mt map[string]string) func(ctx context.Context, method string, req, reply interface{}, ...) error
- func SingleJoiningSlash(a, b string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var JWT *jwt.JWT
Functions ¶
func GenPassword ¶
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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.