Documentation ¶
Index ¶
- func Gorm(args ...string) *gorm.DB
- type GormNewLogger
- func (l GormNewLogger) Error(ctx context.Context, message string, fields ...interface{})
- func (l GormNewLogger) Info(ctx context.Context, message string, fields ...interface{})
- func (l *GormNewLogger) LogMode(level logger.LogLevel) logger.Interface
- func (l GormNewLogger) Trace(ctx context.Context, begin time.Time, ...)
- func (l GormNewLogger) Warn(ctx context.Context, message string, fields ...interface{})
- type Option
- type OrmStarter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GormNewLogger ¶
func (GormNewLogger) Error ¶
func (l GormNewLogger) Error(ctx context.Context, message string, fields ...interface{})
func (GormNewLogger) Info ¶
func (l GormNewLogger) Info(ctx context.Context, message string, fields ...interface{})
func (*GormNewLogger) LogMode ¶
func (l *GormNewLogger) LogMode(level logger.LogLevel) logger.Interface
type OrmStarter ¶
type OrmStarter struct { }
func (*OrmStarter) GetName ¶
func (m *OrmStarter) GetName() string
func (*OrmStarter) Init ¶
func (m *OrmStarter) Init(config *viper.Viper, starters abs.StarterList)
func (*OrmStarter) Instance ¶
func (m *OrmStarter) Instance(args ...interface{}) interface{}
Click to show internal directories.
Click to hide internal directories.