svc

package
v0.0.0-...-ef08f26 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DbtypeMysql      = "mysql"
	DbtypeClickhouse = "clickhouse"
)

Variables

This section is empty.

Functions

func InitCK

func InitCK(c config.Config) (*gorm.DB, func(), error)

func InitDB

func InitDB(c config.Config) (*gorm.DB, func(), error)

func NewDB

func NewDB(dbType string, c config.Config) (*gorm.DB, func(), error)

Types

type ServiceContext

type ServiceContext struct {
	Config config.Config
	DB     *gorm.DB
	CK     *gorm.DB
}

func NewServiceContext

func NewServiceContext(c config.Config) *ServiceContext

Jump to

Keyboard shortcuts

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