Documentation ¶
Index ¶
- type ConsoleOutput
- type DatahubOutput
- type DebugService
- func (d *DebugService) WriteFilterLog(user *module.User, items []*module.Item, context *context.RecommendContext)
- func (d *DebugService) WriteGeneralLog(user *module.User, items []*module.Item, context *context.RecommendContext)
- func (d *DebugService) WriteRankLog(user *module.User, items []*module.Item, context *context.RecommendContext)
- func (d *DebugService) WriteRecallLog(user *module.User, items []*module.Item, context *context.RecommendContext)
- type EmptyOutput
- type FileOutput
- type LogOutputer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsoleOutput ¶
type ConsoleOutput struct { }
func (*ConsoleOutput) WriteLog ¶
func (t *ConsoleOutput) WriteLog(log map[string]interface{})
type DatahubOutput ¶
type DatahubOutput struct {
// contains filtered or unexported fields
}
func NewDatahubOutput ¶
func NewDatahubOutput(config *recconf.DebugConfig) *DatahubOutput
func (*DatahubOutput) WriteLog ¶
func (t *DatahubOutput) WriteLog(log map[string]interface{})
type DebugService ¶
type DebugService struct {
// contains filtered or unexported fields
}
func NewDebugService ¶
func NewDebugService(user *module.User, context *context.RecommendContext) *DebugService
func (*DebugService) WriteFilterLog ¶
func (d *DebugService) WriteFilterLog(user *module.User, items []*module.Item, context *context.RecommendContext)
func (*DebugService) WriteGeneralLog ¶
func (d *DebugService) WriteGeneralLog(user *module.User, items []*module.Item, context *context.RecommendContext)
func (*DebugService) WriteRankLog ¶
func (d *DebugService) WriteRankLog(user *module.User, items []*module.Item, context *context.RecommendContext)
func (*DebugService) WriteRecallLog ¶
func (d *DebugService) WriteRecallLog(user *module.User, items []*module.Item, context *context.RecommendContext)
type EmptyOutput ¶
type EmptyOutput struct { }
func (*EmptyOutput) WriteLog ¶
func (t *EmptyOutput) WriteLog(log map[string]interface{})
type FileOutput ¶
type FileOutput struct {
// contains filtered or unexported fields
}
func NewFileOutput ¶
func NewFileOutput(config *recconf.DebugConfig) *FileOutput
func (*FileOutput) WriteLog ¶
func (t *FileOutput) WriteLog(log map[string]interface{})
type LogOutputer ¶
type LogOutputer interface {
WriteLog(log map[string]interface{})
}
Click to show internal directories.
Click to hide internal directories.