db

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

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

Go to latest
Published: Aug 2, 2019 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 Conn

type Conn struct {
	// contains filtered or unexported fields
}

Conn is object that has database connection.

func NewConn

func NewConn(config config.Configuration) (*Conn, error)

NewConn return new instance.

func (*Conn) Close

func (conn *Conn) Close() error

Close close db session.

func (*Conn) GetDB

func (conn *Conn) GetDB() *gorm.DB

GetDB return database connection.

type RedisConn

type RedisConn interface {
	Client() *redis.Client
}

RedisConn can access redis

func NewRedisConn

func NewRedisConn(conf config.Configuration) RedisConn

NewRedisConn return new connection of redis

Jump to

Keyboard shortcuts

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