service

package
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

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 BlackFilterNode

type BlackFilterNode struct {
	FilterNode
}

BlackFilterNode ...

type BloomFilterNode

type BloomFilterNode struct {
	FilterNode
}

BloomFilterNode ...

type DefaultFilterNode

type DefaultFilterNode struct {
	FilterNode
}

DefaultFilterNode ...

type DurationFilterNode

type DurationFilterNode struct {
	FilterNode
}

DurationFilterNode ...

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 FollowsFilterNode

type FollowsFilterNode struct {
	FilterNode
}

FollowsFilterNode

type RankManager

type RankManager struct {
	Rankers []Ranker
	// contains filtered or unexported fields
}

RankManager ...

func NewRankManager

func NewRankManager() (m *RankManager)

NewRankManager ...

type Ranker

type Ranker interface {
	// contains filtered or unexported methods
}

Ranker ...

type RelatedFilterNode

type RelatedFilterNode struct {
	FilterNode
}

RelatedFilterNode ...

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service struct

func New

func New(c *conf.Config) (s *Service)

New init

func (*Service) Close

func (s *Service) Close()

Close Service

func (*Service) DoABTest

func (s *Service) DoABTest(request *rpc.RecsysRequest)

DoABTest ...

func (*Service) Ping

func (s *Service) Ping(c context.Context) (err error)

Ping Service

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

Directories

Path Synopsis
treelite
Package treelite is a generated protocol buffer package.
Package treelite is a generated protocol buffer package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL