Documentation ¶
Index ¶
- func OpenDB(config *config.Database, logger *zap.Logger) (*sql.DB, domain.Repository, error)
- type GormLoggerAdapter
- func (g *GormLoggerAdapter) Error(ctx context.Context, s string, i ...interface{})
- func (g *GormLoggerAdapter) Info(ctx context.Context, s string, i ...interface{})
- func (g *GormLoggerAdapter) LogMode(level logger.LogLevel) logger.Interface
- func (g *GormLoggerAdapter) Trace(ctx context.Context, begin time.Time, ...)
- func (g *GormLoggerAdapter) Warn(ctx context.Context, s string, i ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GormLoggerAdapter ¶
type GormLoggerAdapter struct {
// contains filtered or unexported fields
}
func (*GormLoggerAdapter) Error ¶
func (g *GormLoggerAdapter) Error(ctx context.Context, s string, i ...interface{})
func (*GormLoggerAdapter) Info ¶
func (g *GormLoggerAdapter) Info(ctx context.Context, s string, i ...interface{})
func (*GormLoggerAdapter) LogMode ¶
func (g *GormLoggerAdapter) LogMode(level logger.LogLevel) logger.Interface
Click to show internal directories.
Click to hide internal directories.