database

package
v0.0.0-...-725965c Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMySQLConn

func NewMySQLConn() database.MySQLConn

NewMySQLConn creates a MySQLConn struct.

func NewRedisConn

func NewRedisConn() database.RedisConn

NewMySQLConn creates a RedisConn struct.

Types

type MySQLConn

type MySQLConn struct{}

A MySQLConn represents a mysql connection

func (*MySQLConn) Conn

func (mc *MySQLConn) Conn() (*sql.DB, error)

Conn get a mysql connection.

type RedisConn

type RedisConn struct{}

A RedisConn represents a redis connection

func (*RedisConn) Conn

func (rc *RedisConn) Conn() (*redis.Client, error)

Conn get a redis connection.

Jump to

Keyboard shortcuts

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