client

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClientProviderSet = wire.NewSet(NewData, NewEntClient)

移除数据库连接相关函数到 data 层

Functions

func NewEntClient

func NewEntClient(conf *conf.Data, logger log.Logger) *ent.Client

初始化数据库连接

Types

type Data

type Data struct {
	// TODO wrapped database client
	DB *ent.Client
}

Data .

func NewData

func NewData(db *ent.Client, logger log.Logger) (*Data, func(), error)

NewData .

Jump to

Keyboard shortcuts

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