initialize

package
v0.0.0-...-b35005d Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gorm

func Gorm() *gorm.DB

Gorm 初始化数据库并产生数据库全局变量

func K8sConnect

func K8sConnect() (*kubernetes.Clientset, *rest.Config)

func NewWriter

func NewWriter(w logger.Writer) *writer

NewWriter writer 构造函数

func Redis

func Redis()

func RegisterTables

func RegisterTables(db *gorm.DB)

RegisterTables 初始化数据库表

func Routers

func Routers() *gin.Engine

Types

This section is empty.

Jump to

Keyboard shortcuts

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