Documentation ¶
Overview ¶
*
- @author huqiuyun
- 数据Elasticsearch
*
- @author huqiuyun
- 数据服务
Index ¶
- func AddDriver(driverName string, dial DialFunc)
- type Adapter
- type ConditionCallback
- type DialFunc
- type EsDatabase
- type 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 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, msg string, data ...interface{})
- type ScopesFunc
- type Sql
- type SqlDatabase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter represents the Gorm adapter for policy storage.
func NewAdapter ¶
NewAdapter is the constructor for Adapter.
type ConditionCallback ¶
type EsDatabase ¶
type Logger ¶ added in v0.5.27
func (*Logger) LogMode ¶ added in v0.5.30
func (l *Logger) LogMode(level gormLogger.LogLevel) gormLogger.Interface
LogMode log mode
Click to show internal directories.
Click to hide internal directories.