Documentation
¶
Index ¶
- func Get(name string) *gorm.DB
- func Main() *gorm.DB
- type Instance
- type SqlLogger
- func (l *SqlLogger) Error(ctx context.Context, msg string, data ...interface{})
- func (l *SqlLogger) Info(ctx context.Context, msg string, data ...interface{})
- func (l *SqlLogger) LogMode(level gormlogger.LogLevel) gormlogger.Interface
- func (l *SqlLogger) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), err error)
- func (l *SqlLogger) Warn(ctx context.Context, msg string, data ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Instance ¶
type Instance struct {
Items map[string]item `json:"items"` // 组件可能有多个实例,要想把多个配置项解析到items,需要在配置文件增加一层,名为items
}
func (*Instance) UpdateInternalLogger ¶
func (i *Instance) UpdateInternalLogger()
UpdateInternalLogger 更新内部Logger,应当在logk更换Logger后调用
Click to show internal directories.
Click to hide internal directories.