Documentation ¶
Index ¶
- Variables
- func NewGormDB(c *conf.Data, logger log.Logger) (*gorm.DB, error)
- func NewGormLogAdapter(logger log.Logger) logger.Interface
- func NewKnowledgeRepo(data *Data, logger log.Logger) biz.KnowledgeRepoIf
- func NewTransaction(d *Data) biz.Transaction
- type Data
- type GormLogAdapter
- func (g *GormLogAdapter) Error(ctx context.Context, msg string, data ...interface{})
- func (g *GormLogAdapter) Info(ctx context.Context, msg string, data ...interface{})
- func (g *GormLogAdapter) LogMode(logger.LogLevel) logger.Interface
- func (g *GormLogAdapter) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), err error)
- func (g *GormLogAdapter) Warn(ctx context.Context, msg string, data ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewData, NewGormDB, NewKnowledgeRepo)
Functions ¶
func NewKnowledgeRepo ¶
func NewKnowledgeRepo(data *Data, logger log.Logger) biz.KnowledgeRepoIf
NewKnowledgeRepo .
Types ¶
Click to show internal directories.
Click to hide internal directories.