xgorm

package
v0.0.0-...-0583c98 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDB

func GetDB() (*gorm.DB, error)

func GetDBConfig

func GetDBConfig() error

Types

type ZapLogger

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

func (*ZapLogger) Error

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

func (*ZapLogger) Info

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

func (*ZapLogger) LogMode

func (l *ZapLogger) LogMode(level logger.LogLevel) logger.Interface

func (*ZapLogger) Trace

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

func (*ZapLogger) Warn

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

Jump to

Keyboard shortcuts

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