Documentation ¶
Index ¶
- func GetDB() (*gorm.DB, error)
- func GetDBConfig() error
- type ZapLogger
- func (l *ZapLogger) Error(ctx context.Context, msg string, data ...interface{})
- func (l *ZapLogger) Info(ctx context.Context, msg string, data ...interface{})
- func (l *ZapLogger) LogMode(level logger.LogLevel) logger.Interface
- func (l *ZapLogger) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), err error)
- func (l *ZapLogger) Warn(ctx context.Context, msg string, data ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDBConfig ¶
func GetDBConfig() error
Types ¶
Click to show internal directories.
Click to hide internal directories.