base

package
v1.1.14 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Http      = "http"
	Grpc      = "grpc"
	Websocket = "websocket"
)

Variables

View Source
var (
	App      string
	Pwd      string
	Mod      string
	BlackCmd = []string{
		"ginctl",
		"version",
	}
)
View Source
var (
	DB *gorm.DB
)

Functions

func Check

func Check(cmd *cobra.Command) (err error)

func Connect

func Connect(dbConfig gorm.Dialector) (err error)

Connect 连接数据库

func SetupDB

func SetupDB()

Types

This section is empty.

Jump to

Keyboard shortcuts

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