component

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const MaxIdle int = 20
View Source
const MaxOpen int = 20
View Source
const RDsn = consts.RDsn
View Source
const WDsn = consts.WDsn

Variables

View Source
var RDb *sql.DB
View Source
var WDb *sql.DB

Functions

func InitMysql

func InitMysql() error

Types

type JWT

type JWT struct {
	Uid     int64 `json:"u"`
	Expired int64 `json:"e"`
}

func (*JWT) Decrypt

func (j *JWT) Decrypt(data []byte) error

func (*JWT) Encrypt

func (j *JWT) Encrypt() ([]byte, error)

Directories

Path Synopsis
Code generated by log-gen.
Code generated by log-gen.

Jump to

Keyboard shortcuts

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