orm

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Orm

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

func NewOrm

func NewOrm(cfg *OrmConfig,
	graceful *graceful_service.GracefulService) (orm *Orm, db *gorm.DB)

func (*Orm) Shutdown

func (o *Orm) Shutdown()

type OrmConfig

type OrmConfig struct {
	Alias           string
	Name            string
	User            string
	Password        string
	Host            string
	Port            string
	Debug           bool
	Logger          bool
	MaxIdleConns    int
	MaxOpenConns    int
	ConnMaxLifeTime int
}

func NewOrmConfig

func NewOrmConfig(cfg *config.AppConfig) *OrmConfig

func (OrmConfig) String

func (c OrmConfig) String() string

Jump to

Keyboard shortcuts

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