Documentation ¶
Index ¶
- Variables
- func RegisterRecallServiceServer(s *grpc.Server, srv RecallServiceServer)
- type RecallItem
- type RecallReq
- func (*RecallReq) Descriptor() ([]byte, []int)deprecated
- func (x *RecallReq) GetFeedID() string
- func (x *RecallReq) GetItemCount() int32
- func (x *RecallReq) GetTimeOutInMS() int32
- func (x *RecallReq) GetUserID() uint64
- func (*RecallReq) ProtoMessage()
- func (x *RecallReq) ProtoReflect() protoreflect.Message
- func (x *RecallReq) Reset()
- func (x *RecallReq) String() string
- type RecallRsp
- type RecallServiceClient
- type RecallServiceServer
- type UnimplementedRecallServiceServer
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) GetItemCount ¶
func (*RecallReq) GetTimeOutInMS ¶
func (*RecallReq) ProtoMessage ¶
func (*RecallReq) ProtoMessage()
func (*RecallReq) ProtoReflect ¶
func (x *RecallReq) ProtoReflect() protoreflect.Message
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) GetRecallResults ¶
func (x *RecallRsp) GetRecallResults() []*RecallItem
func (*RecallRsp) ProtoMessage ¶
func (*RecallRsp) ProtoMessage()
func (*RecallRsp) ProtoReflect ¶
func (x *RecallRsp) ProtoReflect() protoreflect.Message
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.
func NewRecallServiceClient ¶
func NewRecallServiceClient(cc grpc.ClientConnInterface) RecallServiceClient
type RecallServiceServer ¶
RecallServiceServer is the server API for RecallService service.
type UnimplementedRecallServiceServer ¶
type UnimplementedRecallServiceServer struct { }
UnimplementedRecallServiceServer can be embedded to have forward compatible implementations.
Click to show internal directories.
Click to hide internal directories.