Documentation ¶
Index ¶
- func RegisterFilter(name string, filter IBeFilter)
- func RegisterFilterWithConfig(config *recconf.RecommendConfig)
- type BeTrigger
- type FilterService
- type FixValueTrigger
- type IBeFilter
- type TriggerKey
- type TriggerResult
- type U2IBaseTrigger
- type U2IRealtimeTrigger
- type U2ITrigger
- type User2ItemExposureFilter
- type UserEmbeddingDssmO2OTrigger
- type UserRealtimeEmbeddingMindTrigger
- type UserRealtimeEmbeddingTrigger
- type UserTrigger
- type UserVectorTrigger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterFilter ¶
func RegisterFilterWithConfig ¶
func RegisterFilterWithConfig(config *recconf.RecommendConfig)
Types ¶
type BeTrigger ¶
type BeTrigger struct {
// contains filtered or unexported fields
}
func (*BeTrigger) GetTriggerKey ¶
func (t *BeTrigger) GetTriggerKey(user *module.User, context *context.RecommendContext) *TriggerResult
type FilterService ¶
func (*FilterService) AddFilter ¶
func (fs *FilterService) AddFilter(scene string, filter IBeFilter)
func (*FilterService) AddFilters ¶
func (fs *FilterService) AddFilters(scene string, filters []IBeFilter)
type FixValueTrigger ¶
type FixValueTrigger struct {
// contains filtered or unexported fields
}
func (*FixValueTrigger) GetTriggerKey ¶
func (t *FixValueTrigger) GetTriggerKey(user *module.User, context *context.RecommendContext) *TriggerResult
type IBeFilter ¶
type TriggerKey ¶
type TriggerKey interface {
GetTriggerKey(user *module.User, context *context.RecommendContext) *TriggerResult
}
func NewTriggerKey ¶
func NewTriggerKey(recallParam *recconf.BeRecallParam, client *beengine.BeClient) TriggerKey
type TriggerResult ¶
type U2IBaseTrigger ¶
type U2IBaseTrigger struct {
// contains filtered or unexported fields
}
func NewU2IBaseTrigger ¶
func NewU2IBaseTrigger(rulesConfig *recconf.UserTriggerRulesConfig) *U2IBaseTrigger
func (*U2IBaseTrigger) CreateTriggerResult ¶
func (t *U2IBaseTrigger) CreateTriggerResult(triggerInfos []*module.TriggerInfo) *TriggerResult
type U2IRealtimeTrigger ¶
type U2IRealtimeTrigger struct { *U2IBaseTrigger // contains filtered or unexported fields }
func NewU2IRealtimeTrigger ¶
func NewU2IRealtimeTrigger(config *recconf.UserTriggerDaoConfig, rulesConfig *recconf.UserTriggerRulesConfig) *U2IRealtimeTrigger
func (*U2IRealtimeTrigger) GetTriggerKey ¶
func (t *U2IRealtimeTrigger) GetTriggerKey(user *module.User, context *context.RecommendContext) *TriggerResult
type U2ITrigger ¶
type U2ITrigger struct { *U2IBaseTrigger // contains filtered or unexported fields }
func NewU2ITrigger ¶
func NewU2ITrigger(config *recconf.UserCollaborativeDaoConfig, rulesConfig *recconf.UserTriggerRulesConfig) *U2ITrigger
func (*U2ITrigger) GetTriggerKey ¶
func (t *U2ITrigger) GetTriggerKey(user *module.User, context *context.RecommendContext) *TriggerResult
type User2ItemExposureFilter ¶
type User2ItemExposureFilter struct {
// contains filtered or unexported fields
}
user exposure history filter
func NewUser2ItemExposureFilter ¶
func NewUser2ItemExposureFilter(config recconf.BeFilterConfig) *User2ItemExposureFilter
func (*User2ItemExposureFilter) BuildQueryParams ¶
func (f *User2ItemExposureFilter) BuildQueryParams(user *module.User, context *context.RecommendContext) (ret map[string]string)
type UserEmbeddingDssmO2OTrigger ¶
type UserEmbeddingDssmO2OTrigger struct { BizName string RecallName string BeName string // contains filtered or unexported fields }
func NewUserEmbeddingDssmO2OTrigger ¶
func NewUserEmbeddingDssmO2OTrigger(config *recconf.UserEmbeddingO2OTriggerConfig) *UserEmbeddingDssmO2OTrigger
func NewUserEmbeddingMindO2OTrigger ¶
func NewUserEmbeddingMindO2OTrigger(config *recconf.UserEmbeddingO2OTriggerConfig) *UserEmbeddingDssmO2OTrigger
func (*UserEmbeddingDssmO2OTrigger) GetTriggerKey ¶
func (t *UserEmbeddingDssmO2OTrigger) GetTriggerKey(u *module.User, context *context.RecommendContext) *TriggerResult
type UserRealtimeEmbeddingMindTrigger ¶
type UserRealtimeEmbeddingMindTrigger struct {
// contains filtered or unexported fields
}
func NewUserRealtimeEmbeddingMindTrigger ¶
func NewUserRealtimeEmbeddingMindTrigger(config *recconf.UserRealtimeEmbeddingTriggerConfig) *UserRealtimeEmbeddingMindTrigger
func (*UserRealtimeEmbeddingMindTrigger) GetTriggerKey ¶
func (t *UserRealtimeEmbeddingMindTrigger) GetTriggerKey(u *module.User, context *context.RecommendContext) *TriggerResult
type UserRealtimeEmbeddingTrigger ¶
type UserRealtimeEmbeddingTrigger struct {
// contains filtered or unexported fields
}
func NewUserRealtimeEmbeddingTrigger ¶
func NewUserRealtimeEmbeddingTrigger(config *recconf.UserRealtimeEmbeddingTriggerConfig) *UserRealtimeEmbeddingTrigger
func (*UserRealtimeEmbeddingTrigger) GetTriggerKey ¶
func (t *UserRealtimeEmbeddingTrigger) GetTriggerKey(u *module.User, context *context.RecommendContext) *TriggerResult
type UserTrigger ¶
type UserTrigger struct {
// contains filtered or unexported fields
}
func NewUserTrigger ¶
func NewUserTrigger(userTriggers []recconf.TriggerConfig) *UserTrigger
func (*UserTrigger) GetTriggerKey ¶
func (t *UserTrigger) GetTriggerKey(user *module.User, context *context.RecommendContext) *TriggerResult
type UserVectorTrigger ¶
type UserVectorTrigger struct {
// contains filtered or unexported fields
}
func NewUserVectorTrigger ¶
func NewUserVectorTrigger(config *recconf.UserVectorTriggerConfig) *UserVectorTrigger
func (*UserVectorTrigger) GetTriggerKey ¶
func (t *UserVectorTrigger) GetTriggerKey(user *module.User, context *context.RecommendContext) *TriggerResult
Click to show internal directories.
Click to hide internal directories.