databases

package
v0.0.0-...-535f382 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatabaseInterface

type DatabaseInterface interface {
	Open() *gorm.DB
}

DB DBのインターフェース

type Mysql

type Mysql struct {
}

Mysql dbをmysqlにする場合はこれを使う

func NewMysql

func NewMysql() *Mysql

NewMysql New Mysql

func (*Mysql) Open

func (mysql *Mysql) Open() *gorm.DB

GormConnect MySQL wrapper に接続

type Redis

type Redis struct {
}

func NewRedis

func NewRedis() *Redis

func (*Redis) Open

func (redises *Redis) Open() *redis.Client

type RedisInterface

type RedisInterface interface {
	Open() *redis.Client
}

Jump to

Keyboard shortcuts

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