driver

package
v0.0.0-...-b30c35d Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 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 DBDriver

type DBDriver struct {
	Dsn  string
	Name string
}

DBDriver ...

func NewDbDriver

func NewDbDriver(dsn string, name string) *DBDriver

NewDbDriver ...

func (*DBDriver) ConnectDatabase

func (m *DBDriver) ConnectDatabase() (*gorm.DB, error)

ConnectDatabase will create connection to database

type LogDriver

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

LogDriver ...

func NewLogDriver

func NewLogDriver(filename string, level logrus.Level) *LogDriver

NewLogDriver ...

func (*LogDriver) Debug

func (l *LogDriver) Debug(err error)

func (*LogDriver) Error

func (l *LogDriver) Error(err error)

func (*LogDriver) InitLog

func (l *LogDriver) InitLog()

InitLog ...

func (*LogDriver) Warn

func (l *LogDriver) Warn(err error)

Jump to

Keyboard shortcuts

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