dal

package
v0.0.0-...-3a05b22 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GORMConn

type GORMConn struct {
	GORM gorm.GORMDBIOCInterface `normal:""`
}

func GetGORMConnSingleton

func GetGORMConnSingleton() (*GORMConn, error)

func (*GORMConn) GetConn

func (conn *GORMConn) GetConn() gorm.GORMDBIOCInterface

type GORMConnIOCInterface

type GORMConnIOCInterface interface {
	GetConn() gorm.GORMDBIOCInterface
}

func GetGORMConnIOCInterfaceSingleton

func GetGORMConnIOCInterfaceSingleton() (GORMConnIOCInterface, error)

type RedisConn

type RedisConn struct {
	Redis redis.RedisIOCInterface `normal:""`
}

func GetRedisConnSingleton

func GetRedisConnSingleton() (*RedisConn, error)

func (*RedisConn) GetConn

func (conn *RedisConn) GetConn() redis.RedisIOCInterface

type RedisConnIOCInterface

type RedisConnIOCInterface interface {
	GetConn() redis.RedisIOCInterface
}

func GetRedisConnIOCInterfaceSingleton

func GetRedisConnIOCInterfaceSingleton() (RedisConnIOCInterface, error)

type ThisGORMConn

type ThisGORMConn struct {
}

func (*ThisGORMConn) This

type ThisRedisConn

type ThisRedisConn struct {
}

func (*ThisRedisConn) This

Jump to

Keyboard shortcuts

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