recall

package
v0.0.0-...-dfa5874 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_recall_proto protoreflect.FileDescriptor

Functions

func RegisterRecallServiceServer

func RegisterRecallServiceServer(s *grpc.Server, srv RecallServiceServer)

Types

type RecallItem

type RecallItem struct {
	ID    string  `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`         //item id
	Score float64 `protobuf:"fixed64,2,opt,name=Score,proto3" json:"Score,omitempty"` //打分值
	// contains filtered or unexported fields
}

func (*RecallItem) Descriptor deprecated

func (*RecallItem) Descriptor() ([]byte, []int)

Deprecated: Use RecallItem.ProtoReflect.Descriptor instead.

func (*RecallItem) GetID

func (x *RecallItem) GetID() string

func (*RecallItem) GetScore

func (x *RecallItem) GetScore() float64

func (*RecallItem) ProtoMessage

func (*RecallItem) ProtoMessage()

func (*RecallItem) ProtoReflect

func (x *RecallItem) ProtoReflect() protoreflect.Message

func (*RecallItem) Reset

func (x *RecallItem) Reset()

func (*RecallItem) String

func (x *RecallItem) String() string

type RecallReq

type RecallReq struct {
	UserID      uint64 `protobuf:"varint,1,opt,name=UserID,proto3" json:"UserID,omitempty"`           //用户Id
	FeedID      string `protobuf:"bytes,2,opt,name=FeedID,proto3" json:"FeedID,omitempty"`            //FeedID
	ItemCount   int32  `protobuf:"varint,3,opt,name=ItemCount,proto3" json:"ItemCount,omitempty"`     //召回数量
	TimeOutInMS int32  `protobuf:"varint,4,opt,name=TimeOutInMS,proto3" json:"TimeOutInMS,omitempty"` //召回超时时间,必须在该时间内返回(无论是否有结果)
	// contains filtered or unexported fields
}

func (*RecallReq) Descriptor deprecated

func (*RecallReq) Descriptor() ([]byte, []int)

Deprecated: Use RecallReq.ProtoReflect.Descriptor instead.

func (*RecallReq) GetFeedID

func (x *RecallReq) GetFeedID() string

func (*RecallReq) GetItemCount

func (x *RecallReq) GetItemCount() int32

func (*RecallReq) GetTimeOutInMS

func (x *RecallReq) GetTimeOutInMS() int32

func (*RecallReq) GetUserID

func (x *RecallReq) GetUserID() uint64

func (*RecallReq) ProtoMessage

func (*RecallReq) ProtoMessage()

func (*RecallReq) ProtoReflect

func (x *RecallReq) ProtoReflect() protoreflect.Message

func (*RecallReq) Reset

func (x *RecallReq) Reset()

func (*RecallReq) String

func (x *RecallReq) String() string

type RecallRsp

type RecallRsp struct {
	RecallResults []*RecallItem `protobuf:"bytes,1,rep,name=RecallResults,proto3" json:"RecallResults,omitempty"` //返回Items列表
	// contains filtered or unexported fields
}

func (*RecallRsp) Descriptor deprecated

func (*RecallRsp) Descriptor() ([]byte, []int)

Deprecated: Use RecallRsp.ProtoReflect.Descriptor instead.

func (*RecallRsp) GetRecallResults

func (x *RecallRsp) GetRecallResults() []*RecallItem

func (*RecallRsp) ProtoMessage

func (*RecallRsp) ProtoMessage()

func (*RecallRsp) ProtoReflect

func (x *RecallRsp) ProtoReflect() protoreflect.Message

func (*RecallRsp) Reset

func (x *RecallRsp) Reset()

func (*RecallRsp) String

func (x *RecallRsp) String() string

type RecallServiceClient

type RecallServiceClient interface {
	Recall(ctx context.Context, in *RecallReq, opts ...grpc.CallOption) (*RecallRsp, error)
}

RecallServiceClient is the client API for RecallService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type RecallServiceServer

type RecallServiceServer interface {
	Recall(context.Context, *RecallReq) (*RecallRsp, error)
}

RecallServiceServer is the server API for RecallService service.

type UnimplementedRecallServiceServer

type UnimplementedRecallServiceServer struct {
}

UnimplementedRecallServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedRecallServiceServer) Recall

Jump to

Keyboard shortcuts

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