ds

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCacheMemory

func GetCacheMemory() *cache.Cache

func GetDB

func GetDB() *sqlx.DB

func GetGDB

func GetGDB() *gorm.DB

func GetKafkaCom

func GetKafkaCom() sarama.ConsumerGroup

func GetKafkaPrd

func GetKafkaPrd() sarama.SyncProducer

func GetMgoDb

func GetMgoDb() *mongo.Database

func GetRabbitMQChn

func GetRabbitMQChn() *amqp.Channel

func GetRedisClient

func GetRedisClient() *redis.Client

func GetSDb

func GetSDb() *sqlx.DB

Types

type BaseModel

type BaseModel[T basemodel.BaseEntity] struct {
}

func (*BaseModel[T]) GetById

func (model *BaseModel[T]) GetById(id int64) *T

TODO 暂未调通,先不用

type Data

type Data struct {
	// contains filtered or unexported fields
}

func InitCompent

func InitCompent(d *setting.Datasource) (*Data, func(), error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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