database

package
v0.0.0-...-9a9f523 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MySQLDB

type MySQLDB struct {
	*sql.DB
}

func NewMySQLDB

func NewMySQLDB(dbCfg config.MySQLConfig) (*MySQLDB, error)

type RedisDB

type RedisDB struct {
	*redis.Client
}

func NewRedisDB

func NewRedisDB(dbCfg config.RedisConfig) (*RedisDB, error)

Use this in the app.go's New function and add the struct type in the App struct in app.go

Jump to

Keyboard shortcuts

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