dao

package
v0.0.0-...-e1161c2 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GormDb  *gorm.DB
	RedisDb *redis.Client
)

Functions

func InitGormDB

func InitGormDB(driver, host, userName, password, database string, port int, maxIdle, maxOpen, maxLifetime int) (*gorm.DB, error)

InitGormDB 封装具体的数据库连接逻辑

func InitRedisDB

func InitRedisDB(host string, port int) (*redis.Client, error)

InitRedisDB 初始化 Redis 客户端

Types

type ConcreteObserver

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

ConcreteObserver 具体的观察者

func (*ConcreteObserver) Update

func (o *ConcreteObserver) Update(fileObj io.Writer)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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