core

package
v0.0.0-...-3735443 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

rsa encrypt decrypt

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckToken

func CheckToken(tokenString string) (string, error)

func GetMongoClient

func GetMongoClient() *mongoClient

func GetRedisClient

func GetRedisClient() *redisClient

func GetRsaClient

func GetRsaClient() *rsaClient

func InitMongo

func InitMongo()

func InitRedis

func InitRedis()

func NewToken

func NewToken(user string) (string, error)

func TransSetUpdate

func TransSetUpdate(data metadata.MapStr) *bson.D

Types

type IdGen

type IdGen struct {
	Id         string `bson:"_id"`
	SequenceID int64  `bson:"SequenceID"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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