Versions in this module Expand all Collapse all v0 v0.0.2 Sep 5, 2024 Changes in this version + type Config struct + Master *ConfigItem + Slaves []*ConfigItem + type ConfigItem struct + Database string + Host string + MaxIdleConns int + MaxOpenConns int + Password string + Port int + Username string + type GormDBManager struct + func NewGormDBManager(configPath string, logger *log.Helper) *GormDBManager + func (g *GormDBManager) MasterDB() *gorm.DB + func (g *GormDBManager) SlaveDB() *gorm.DB + type Logger struct + func NewLogger(helper *log.Helper, config logger.Config) *Logger + func (l *Logger) Error(ctx context.Context, msg string, data ...interface{}) + func (l *Logger) Info(ctx context.Context, msg string, data ...interface{}) + func (l *Logger) LogMode(level logger.LogLevel) logger.Interface + func (l *Logger) Trace(ctx context.Context, begin time.Time, ...) + func (l *Logger) Warn(ctx context.Context, msg string, data ...interface{})