Back to godoc.org

Package driver

v0.0.0-...-b30c35d
Latest Go to latest

The latest major version is .

Published: Feb 27, 2020 | License: MIT | Module: github.com/bondhan/gotem

Index

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)

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier