db

package
v0.0.0-...-1bcd10a Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MysqlConnectionPool

type MysqlConnectionPool struct{}

func GetMySqlConnection

func GetMySqlConnection() *MysqlConnectionPool

func (*MysqlConnectionPool) GetMySqlDB

func (m *MysqlConnectionPool) GetMySqlDB() (dbConnection *gorm.DB)

func (*MysqlConnectionPool) InitConnectionPool

func (m *MysqlConnectionPool) InitConnectionPool() bool

type RedisConnectPool

type RedisConnectPool struct{}

func GetRedisConnection

func GetRedisConnection() *RedisConnectPool

func (*RedisConnectPool) GetRedisClient

func (r *RedisConnectPool) GetRedisClient() *redis.Client

func (*RedisConnectPool) InitialRedisClient

func (r *RedisConnectPool) InitialRedisClient() bool

Jump to

Keyboard shortcuts

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