helpers

package
Version: v0.0.0-...-fc76e2f Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DATABASE_CONFIG_FILE = "config/database.json"

Variables

This section is empty.

Functions

This section is empty.

Types

type DataSource

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

func (*DataSource) Close

func (ds *DataSource) Close() error

func (*DataSource) Connect

func (ds *DataSource) Connect() error

func (*DataSource) DoInTransaction

func (ds *DataSource) DoInTransaction(callback func(th *TxHolder) error) error

func (*DataSource) GetDB

func (ds *DataSource) GetDB() *gorm.DB

func (*DataSource) LogMode

func (ds *DataSource) LogMode(b bool)

type Json

type Json struct {
}

func (*Json) UnmarshalJsonFile

func (j *Json) UnmarshalJsonFile(filePath string, dst interface{}) error

type TxHolder

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

func (*TxHolder) GetTx

func (th *TxHolder) GetTx() *gorm.DB

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL