internal

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SystemVersion = "v1.0.0"
)

Variables

This section is empty.

Functions

func NewMysqlDb

func NewMysqlDb() (*gorm.DB, map[string]*gorm.DB)

func NewPgsqlDb

func NewPgsqlDb() *gorm.DB

func NewRedis

func NewRedis() *redis.Client

func NewSQLiteDb

func NewSQLiteDb() *gorm.DB

func NewViper

func NewViper() *viper.Viper

Types

type DbType

type DbType string

type GormLogger

type GormLogger struct {
	Logger *zap.Logger
}

func (*GormLogger) Error

func (gl *GormLogger) Error(ctx context.Context, msg string, data ...interface{})

func (*GormLogger) Info

func (gl *GormLogger) Info(ctx context.Context, msg string, data ...interface{})

func (*GormLogger) LogMode

func (gl *GormLogger) LogMode(level logger.LogLevel) logger.Interface

func (*GormLogger) Trace

func (gl *GormLogger) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), err error)

func (*GormLogger) Warn

func (gl *GormLogger) Warn(ctx context.Context, msg string, data ...interface{})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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