config

package
v0.0.0-...-69bdcc1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConflictUpdateAll = clause.OnConflict{UpdateAll: true}
	JwtSecret         = []byte("MAQoSrhbNoK312x2")
)

Functions

func GetDB

func GetDB(ctx context.Context) (*gorm.DB, context.Context)

GetDB 从Context中获取DB对象 如果没有DB对象则添加DB并且返回新的Context

func Init

func Init()

func InitTest

func InitTest()

Types

This section is empty.

Jump to

Keyboard shortcuts

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