Documentation ¶
Index ¶
- Variables
- func RegisterRecommendationServiceServer(s grpc.ServiceRegistrar, srv RecommendationServiceServer)
- type GetRecommendationsRequest
- func (*GetRecommendationsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRecommendationsRequest) GetMemberId() int32
- func (*GetRecommendationsRequest) ProtoMessage()
- func (x *GetRecommendationsRequest) ProtoReflect() protoreflect.Message
- func (x *GetRecommendationsRequest) Reset()
- func (x *GetRecommendationsRequest) String() string
- type GetRecommendationsResponse
- func (*GetRecommendationsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetRecommendationsResponse) GetMedia() []*Media
- func (*GetRecommendationsResponse) ProtoMessage()
- func (x *GetRecommendationsResponse) ProtoReflect() protoreflect.Message
- func (x *GetRecommendationsResponse) Reset()
- func (x *GetRecommendationsResponse) String() string
- type Media
- func (*Media) Descriptor() ([]byte, []int)deprecated
- func (x *Media) GetCountries() []string
- func (x *Media) GetGenres() []string
- func (x *Media) GetId() int32
- func (x *Media) GetInfluences() []string
- func (x *Media) GetLanguages() []string
- func (x *Media) GetLength() int32
- func (x *Media) GetMediaType() string
- func (x *Media) GetPeople() []string
- func (x *Media) GetTitle() string
- func (x *Media) GetYear() int32
- func (*Media) ProtoMessage()
- func (x *Media) ProtoReflect() protoreflect.Message
- func (x *Media) Reset()
- func (x *Media) String() string
- type RecommendationServiceClient
- type RecommendationServiceServer
- type UnimplementedRecommendationServiceServer
- type UnsafeRecommendationServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_services_recommendation_proto protoreflect.FileDescriptor
var RecommendationService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "recommendation.RecommendationService", HandlerType: (*RecommendationServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetRecommendations", Handler: _RecommendationService_GetRecommendations_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "services/recommendation.proto", }
RecommendationService_ServiceDesc is the grpc.ServiceDesc for RecommendationService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRecommendationServiceServer ¶
func RegisterRecommendationServiceServer(s grpc.ServiceRegistrar, srv RecommendationServiceServer)
Types ¶
type GetRecommendationsRequest ¶
type GetRecommendationsRequest struct { MemberId int32 `protobuf:"varint,1,opt,name=memberId,proto3" json:"memberId,omitempty"` // contains filtered or unexported fields }
func (*GetRecommendationsRequest) Descriptor
deprecated
func (*GetRecommendationsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRecommendationsRequest.ProtoReflect.Descriptor instead.
func (*GetRecommendationsRequest) GetMemberId ¶
func (x *GetRecommendationsRequest) GetMemberId() int32
func (*GetRecommendationsRequest) ProtoMessage ¶
func (*GetRecommendationsRequest) ProtoMessage()
func (*GetRecommendationsRequest) ProtoReflect ¶
func (x *GetRecommendationsRequest) ProtoReflect() protoreflect.Message
func (*GetRecommendationsRequest) Reset ¶
func (x *GetRecommendationsRequest) Reset()
func (*GetRecommendationsRequest) String ¶
func (x *GetRecommendationsRequest) String() string
type GetRecommendationsResponse ¶
type GetRecommendationsResponse struct { Media []*Media `protobuf:"bytes,1,rep,name=media,proto3" json:"media,omitempty"` // contains filtered or unexported fields }
func (*GetRecommendationsResponse) Descriptor
deprecated
func (*GetRecommendationsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetRecommendationsResponse.ProtoReflect.Descriptor instead.
func (*GetRecommendationsResponse) GetMedia ¶
func (x *GetRecommendationsResponse) GetMedia() []*Media
func (*GetRecommendationsResponse) ProtoMessage ¶
func (*GetRecommendationsResponse) ProtoMessage()
func (*GetRecommendationsResponse) ProtoReflect ¶
func (x *GetRecommendationsResponse) ProtoReflect() protoreflect.Message
func (*GetRecommendationsResponse) Reset ¶
func (x *GetRecommendationsResponse) Reset()
func (*GetRecommendationsResponse) String ¶
func (x *GetRecommendationsResponse) String() string
type Media ¶
type Media struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` MediaType string `protobuf:"bytes,2,opt,name=media_type,json=mediaType,proto3" json:"media_type,omitempty"` Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` Genres []string `protobuf:"bytes,4,rep,name=genres,proto3" json:"genres,omitempty"` Year int32 `protobuf:"varint,5,opt,name=year,proto3" json:"year,omitempty"` People []string `protobuf:"bytes,6,rep,name=people,proto3" json:"people,omitempty"` Influences []string `protobuf:"bytes,7,rep,name=influences,proto3" json:"influences,omitempty"` Countries []string `protobuf:"bytes,8,rep,name=countries,proto3" json:"countries,omitempty"` Languages []string `protobuf:"bytes,9,rep,name=languages,proto3" json:"languages,omitempty"` Length int32 `protobuf:"varint,10,opt,name=length,proto3" json:"length,omitempty"` // contains filtered or unexported fields }
func (*Media) Descriptor
deprecated
func (*Media) GetCountries ¶
func (*Media) GetInfluences ¶
func (*Media) GetLanguages ¶
func (*Media) GetMediaType ¶
func (*Media) ProtoMessage ¶
func (*Media) ProtoMessage()
func (*Media) ProtoReflect ¶
func (x *Media) ProtoReflect() protoreflect.Message
type RecommendationServiceClient ¶
type RecommendationServiceClient interface {
GetRecommendations(ctx context.Context, in *GetRecommendationsRequest, opts ...grpc.CallOption) (*GetRecommendationsResponse, error)
}
RecommendationServiceClient is the client API for RecommendationService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewRecommendationServiceClient ¶
func NewRecommendationServiceClient(cc grpc.ClientConnInterface) RecommendationServiceClient
type RecommendationServiceServer ¶
type RecommendationServiceServer interface { GetRecommendations(context.Context, *GetRecommendationsRequest) (*GetRecommendationsResponse, error) // contains filtered or unexported methods }
RecommendationServiceServer is the server API for RecommendationService service. All implementations must embed UnimplementedRecommendationServiceServer for forward compatibility
type UnimplementedRecommendationServiceServer ¶
type UnimplementedRecommendationServiceServer struct { }
UnimplementedRecommendationServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedRecommendationServiceServer) GetRecommendations ¶
func (UnimplementedRecommendationServiceServer) GetRecommendations(context.Context, *GetRecommendationsRequest) (*GetRecommendationsResponse, error)
type UnsafeRecommendationServiceServer ¶
type UnsafeRecommendationServiceServer interface {
// contains filtered or unexported methods
}
UnsafeRecommendationServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RecommendationServiceServer will result in compilation errors.