Documentation ¶
Index ¶
- Variables
- func Command() []*cli.Command
- func Gorm() *gorm.DB
- func GormInit()
- func GormMigrate(dst ...any)
- func Qmgo() *qmgo.Database
- func QmgoInit()
- func Redis() *redis.Client
- func RedisInit()
- func Register()
- type GormService
- type Logger
- func (l *Logger) Error(ctx context.Context, s string, args ...interface{})
- func (l *Logger) Info(ctx context.Context, s string, args ...interface{})
- func (l *Logger) LogMode(level gormLogger.LogLevel) gormLogger.Interface
- func (l *Logger) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), err error)
- func (l *Logger) Warn(ctx context.Context, s string, args ...interface{})
- type QmgoService
- type RedisService
Constants ¶
This section is empty.
Variables ¶
View Source
var MigrateModel = make([]any, 0)
Functions ¶
func GormMigrate ¶
func GormMigrate(dst ...any)
Types ¶
type GormService ¶
type GormService struct {
// contains filtered or unexported fields
}
func (*GormService) Shutdown ¶
func (s *GormService) Shutdown() error
type Logger ¶
type Logger struct { SlowThreshold time.Duration SourceField string IgnoreRecordNotFoundError bool Logger zerolog.Logger LogLevel gormLogger.LogLevel }
Logger Database Logs
func GormLogger ¶
func GormLogger() *Logger
func (*Logger) LogMode ¶
func (l *Logger) LogMode(level gormLogger.LogLevel) gormLogger.Interface
type QmgoService ¶
type QmgoService struct {
// contains filtered or unexported fields
}
func (*QmgoService) Shutdown ¶
func (s *QmgoService) Shutdown() error
type RedisService ¶
type RedisService struct {
// contains filtered or unexported fields
}
func (*RedisService) Shutdown ¶
func (s *RedisService) Shutdown() error
Click to show internal directories.
Click to hide internal directories.