Documentation ¶
Index ¶
- Constants
- type BaseRanker
- type BlackFilterNode
- type BloomFilterNode
- type DefaultFilterNode
- type DurationFilterNode
- type FilterManager
- type FilterNode
- type FollowsFilterNode
- type RankManager
- type Ranker
- type RelatedFilterNode
- type Service
- func (s *Service) Close()
- func (s *Service) DoABTest(request *rpc.RecsysRequest)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) RecService(c context.Context, req *rpc.RecsysRequest) (response *rpc.RecsysResponse, err error)
- func (s *Service) RelatedRecService(c context.Context, req *rpc.RecsysRequest) (response *rpc.RecsysResponse, err error)
- func (s *Service) Start(c context.Context, req *rpc.RecsysRequest) (res *rpc.RecsysResponse, err error)
- func (s *Service) StoreLog(request *recsys.RecsysRequest, response *recsys.RecsysResponse, ...)
- func (s *Service) UpsRecService(c context.Context, req *rpc.RecsysRequest) (response *rpc.RecsysResponse, err error)
Constants ¶
View Source
const ( //ABTestA ... ABTestA = "bbq-rec-A" //ABTestB ... ABTestB = "bbq-rec-B" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseRanker ¶
type BaseRanker struct { Ranker // contains filtered or unexported fields }
BaseRanker ...
type FilterManager ¶
type FilterManager struct {
// contains filtered or unexported fields
}
FilterManager ...
func NewFilterManager ¶
func NewFilterManager() (m *FilterManager)
NewFilterManager new a filter manager
type FilterNode ¶
type FilterNode interface {
// contains filtered or unexported methods
}
FilterNode ...
type RankManager ¶
type RankManager struct { Rankers []Ranker // contains filtered or unexported fields }
RankManager ...
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service struct
func (*Service) RecService ¶
func (s *Service) RecService(c context.Context, req *rpc.RecsysRequest) (response *rpc.RecsysResponse, err error)
RecService recommend service
func (*Service) RelatedRecService ¶
func (s *Service) RelatedRecService(c context.Context, req *rpc.RecsysRequest) (response *rpc.RecsysResponse, err error)
RelatedRecService ...
func (*Service) Start ¶
func (s *Service) Start(c context.Context, req *rpc.RecsysRequest) (res *rpc.RecsysResponse, err error)
Start this just a example
func (*Service) StoreLog ¶
func (s *Service) StoreLog(request *recsys.RecsysRequest, response *recsys.RecsysResponse, user *model.UserProfile, business string)
StoreLog ...stores request and response log
func (*Service) UpsRecService ¶
func (s *Service) UpsRecService(c context.Context, req *rpc.RecsysRequest) (response *rpc.RecsysResponse, err error)
UpsRecService
Source Files ¶
Click to show internal directories.
Click to hide internal directories.