Documentation ¶
Index ¶
- Variables
- func RegisterRecsysServer(s *grpc.Server, srv RecsysServer)
- type RecsysClient
- type RecsysRecord
- func (*RecsysRecord) Descriptor() ([]byte, []int)
- func (m *RecsysRecord) Marshal() (dAtA []byte, err error)
- func (m *RecsysRecord) MarshalTo(dAtA []byte) (int, error)
- func (*RecsysRecord) ProtoMessage()
- func (m *RecsysRecord) Reset()
- func (m *RecsysRecord) Size() (n int)
- func (this *RecsysRecord) String() string
- func (m *RecsysRecord) Unmarshal(dAtA []byte) error
- func (m *RecsysRecord) XXX_DiscardUnknown()
- func (m *RecsysRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RecsysRecord) XXX_Merge(src proto.Message)
- func (m *RecsysRecord) XXX_Size() int
- func (m *RecsysRecord) XXX_Unmarshal(b []byte) error
- type RecsysRequest
- func (*RecsysRequest) Descriptor() ([]byte, []int)
- func (m *RecsysRequest) Marshal() (dAtA []byte, err error)
- func (m *RecsysRequest) MarshalTo(dAtA []byte) (int, error)
- func (*RecsysRequest) ProtoMessage()
- func (m *RecsysRequest) Reset()
- func (m *RecsysRequest) Size() (n int)
- func (this *RecsysRequest) String() string
- func (m *RecsysRequest) Unmarshal(dAtA []byte) error
- func (m *RecsysRequest) XXX_DiscardUnknown()
- func (m *RecsysRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RecsysRequest) XXX_Merge(src proto.Message)
- func (m *RecsysRequest) XXX_Size() int
- func (m *RecsysRequest) XXX_Unmarshal(b []byte) error
- type RecsysResponse
- func (*RecsysResponse) Descriptor() ([]byte, []int)
- func (m *RecsysResponse) Marshal() (dAtA []byte, err error)
- func (m *RecsysResponse) MarshalTo(dAtA []byte) (int, error)
- func (*RecsysResponse) ProtoMessage()
- func (m *RecsysResponse) Reset()
- func (m *RecsysResponse) Size() (n int)
- func (this *RecsysResponse) String() string
- func (m *RecsysResponse) Unmarshal(dAtA []byte) error
- func (m *RecsysResponse) XXX_DiscardUnknown()
- func (m *RecsysResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RecsysResponse) XXX_Merge(src proto.Message)
- func (m *RecsysResponse) XXX_Size() int
- func (m *RecsysResponse) XXX_Unmarshal(b []byte) error
- type RecsysServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowApi = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterRecsysServer ¶
func RegisterRecsysServer(s *grpc.Server, srv RecsysServer)
Types ¶
type RecsysClient ¶
type RecsysClient interface { RecService(ctx context.Context, in *RecsysRequest, opts ...grpc.CallOption) (*RecsysResponse, error) RelatedRecService(ctx context.Context, in *RecsysRequest, opts ...grpc.CallOption) (*RecsysResponse, error) UpsRecService(ctx context.Context, in *RecsysRequest, opts ...grpc.CallOption) (*RecsysResponse, error) }
RecsysClient is the client API for Recsys service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRecsysClient ¶
func NewRecsysClient(cc *grpc.ClientConn) RecsysClient
type RecsysRecord ¶
type RecsysRecord struct { Svid int64 `protobuf:"varint,1,opt,name=svid,proto3" json:"svid,omitempty"` Score float64 `protobuf:"fixed64,2,opt,name=score,proto3" json:"score,omitempty"` Map map[string]string `` /* 147-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RecsysRecord) Descriptor ¶
func (*RecsysRecord) Descriptor() ([]byte, []int)
func (*RecsysRecord) Marshal ¶
func (m *RecsysRecord) Marshal() (dAtA []byte, err error)
func (*RecsysRecord) ProtoMessage ¶
func (*RecsysRecord) ProtoMessage()
func (*RecsysRecord) Reset ¶
func (m *RecsysRecord) Reset()
func (*RecsysRecord) Size ¶
func (m *RecsysRecord) Size() (n int)
func (*RecsysRecord) String ¶
func (this *RecsysRecord) String() string
func (*RecsysRecord) Unmarshal ¶
func (m *RecsysRecord) Unmarshal(dAtA []byte) error
func (*RecsysRecord) XXX_DiscardUnknown ¶
func (m *RecsysRecord) XXX_DiscardUnknown()
func (*RecsysRecord) XXX_Marshal ¶
func (m *RecsysRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RecsysRecord) XXX_Merge ¶
func (m *RecsysRecord) XXX_Merge(src proto.Message)
func (*RecsysRecord) XXX_Size ¶
func (m *RecsysRecord) XXX_Size() int
func (*RecsysRecord) XXX_Unmarshal ¶
func (m *RecsysRecord) XXX_Unmarshal(b []byte) error
type RecsysRequest ¶
type RecsysRequest struct { MID int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid" form:"mid"` BUVID string `protobuf:"bytes,2,opt,name=buvid,proto3" json:"buvid" form:"buvid"` Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit" form:"limit"` Offset int32 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset" form:"offset"` SVID int64 `protobuf:"varint,5,opt,name=svid,proto3" json:"svid" form:"svid"` Abtest string `protobuf:"bytes,6,opt,name=abtest,proto3" json:"abtest" form:"abtest"` TraceID string `protobuf:"bytes,7,opt,name=traceID,proto3" json:"traceID" form:"traceID"` DebugFlag bool `protobuf:"varint,8,opt,name=debug_flag,json=debugFlag,proto3" json:"debugFlag" form:"debugFlag"` DebugType string `protobuf:"bytes,9,opt,name=debug_type,json=debugType,proto3" json:"debugType" form:"debugType"` QueryID string `protobuf:"bytes,10,opt,name=queryID,proto3" json:"queryID" form:"queryID"` App string `protobuf:"bytes,11,opt,name=app,proto3" json:"app" form:"app"` AppVersion string `protobuf:"bytes,12,opt,name=appVersion,proto3" json:"appVersion" form:"appVersion"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RecsysRequest) Descriptor ¶
func (*RecsysRequest) Descriptor() ([]byte, []int)
func (*RecsysRequest) Marshal ¶
func (m *RecsysRequest) Marshal() (dAtA []byte, err error)
func (*RecsysRequest) ProtoMessage ¶
func (*RecsysRequest) ProtoMessage()
func (*RecsysRequest) Reset ¶
func (m *RecsysRequest) Reset()
func (*RecsysRequest) Size ¶
func (m *RecsysRequest) Size() (n int)
func (*RecsysRequest) String ¶
func (this *RecsysRequest) String() string
func (*RecsysRequest) Unmarshal ¶
func (m *RecsysRequest) Unmarshal(dAtA []byte) error
func (*RecsysRequest) XXX_DiscardUnknown ¶
func (m *RecsysRequest) XXX_DiscardUnknown()
func (*RecsysRequest) XXX_Marshal ¶
func (m *RecsysRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RecsysRequest) XXX_Merge ¶
func (m *RecsysRequest) XXX_Merge(src proto.Message)
func (*RecsysRequest) XXX_Size ¶
func (m *RecsysRequest) XXX_Size() int
func (*RecsysRequest) XXX_Unmarshal ¶
func (m *RecsysRequest) XXX_Unmarshal(b []byte) error
type RecsysResponse ¶
type RecsysResponse struct { Message map[string]string `` /* 155-byte string literal not displayed */ List []*RecsysRecord `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RecsysResponse) Descriptor ¶
func (*RecsysResponse) Descriptor() ([]byte, []int)
func (*RecsysResponse) Marshal ¶
func (m *RecsysResponse) Marshal() (dAtA []byte, err error)
func (*RecsysResponse) ProtoMessage ¶
func (*RecsysResponse) ProtoMessage()
func (*RecsysResponse) Reset ¶
func (m *RecsysResponse) Reset()
func (*RecsysResponse) Size ¶
func (m *RecsysResponse) Size() (n int)
func (*RecsysResponse) String ¶
func (this *RecsysResponse) String() string
func (*RecsysResponse) Unmarshal ¶
func (m *RecsysResponse) Unmarshal(dAtA []byte) error
func (*RecsysResponse) XXX_DiscardUnknown ¶
func (m *RecsysResponse) XXX_DiscardUnknown()
func (*RecsysResponse) XXX_Marshal ¶
func (m *RecsysResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RecsysResponse) XXX_Merge ¶
func (m *RecsysResponse) XXX_Merge(src proto.Message)
func (*RecsysResponse) XXX_Size ¶
func (m *RecsysResponse) XXX_Size() int
func (*RecsysResponse) XXX_Unmarshal ¶
func (m *RecsysResponse) XXX_Unmarshal(b []byte) error
type RecsysServer ¶
type RecsysServer interface { RecService(context.Context, *RecsysRequest) (*RecsysResponse, error) RelatedRecService(context.Context, *RecsysRequest) (*RecsysResponse, error) UpsRecService(context.Context, *RecsysRequest) (*RecsysResponse, error) }
RecsysServer is the server API for Recsys service.
Click to show internal directories.
Click to hide internal directories.