Documentation ¶
Index ¶
- Variables
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)deprecated
- func (x *Metadata) GetDescription() string
- func (x *Metadata) GetDirector() string
- func (x *Metadata) GetId() uint64
- func (x *Metadata) GetTitle() string
- func (*Metadata) ProtoMessage()
- func (x *Metadata) ProtoReflect() protoreflect.Message
- func (x *Metadata) Reset()
- func (x *Metadata) String() string
- type Movie
- func (*Movie) Descriptor() ([]byte, []int)deprecated
- func (x *Movie) GetRecordId() string
- func (x *Movie) GetRecordType() string
- func (x *Movie) GetUserId() string
- func (x *Movie) GetValue() uint32
- func (*Movie) ProtoMessage()
- func (x *Movie) ProtoReflect() protoreflect.Message
- func (x *Movie) Reset()
- func (x *Movie) String() string
- type MovieDetail
- func (*MovieDetail) Descriptor() ([]byte, []int)deprecated
- func (x *MovieDetail) GetMetadata() *Metadata
- func (x *MovieDetail) GetRating() float64
- func (*MovieDetail) ProtoMessage()
- func (x *MovieDetail) ProtoReflect() protoreflect.Message
- func (x *MovieDetail) Reset()
- func (x *MovieDetail) String() string
- type MovieRepo
- type MovieUsecase
Constants ¶
This section is empty.
Variables ¶
View Source
var File_internal_biz_do_proto protoreflect.FileDescriptor
View Source
var ProviderSet = wire.NewSet(NewMovieUsecase)
ProviderSet is biz providers.
Functions ¶
This section is empty.
Types ¶
type Metadata ¶
type Metadata struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Director string `protobuf:"bytes,4,opt,name=director,proto3" json:"director,omitempty"` // contains filtered or unexported fields }
func (*Metadata) Descriptor
deprecated
func (*Metadata) GetDescription ¶
func (*Metadata) GetDirector ¶
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶
func (x *Metadata) ProtoReflect() protoreflect.Message
type Movie ¶
type Movie struct { RecordId string `protobuf:"bytes,1,opt,name=record_id,json=recordId,proto3" json:"record_id,omitempty"` RecordType string `protobuf:"bytes,2,opt,name=record_type,json=recordType,proto3" json:"record_type,omitempty"` UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Value uint32 `protobuf:"varint,4,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Movie) Descriptor
deprecated
func (*Movie) GetRecordId ¶
func (*Movie) GetRecordType ¶
func (*Movie) ProtoMessage ¶
func (*Movie) ProtoMessage()
func (*Movie) ProtoReflect ¶
func (x *Movie) ProtoReflect() protoreflect.Message
type MovieDetail ¶
type MovieDetail struct { Rating float64 `protobuf:"fixed64,1,opt,name=rating,proto3" json:"rating,omitempty"` Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*MovieDetail) Descriptor
deprecated
func (*MovieDetail) Descriptor() ([]byte, []int)
Deprecated: Use MovieDetail.ProtoReflect.Descriptor instead.
func (*MovieDetail) GetMetadata ¶
func (x *MovieDetail) GetMetadata() *Metadata
func (*MovieDetail) GetRating ¶
func (x *MovieDetail) GetRating() float64
func (*MovieDetail) ProtoMessage ¶
func (*MovieDetail) ProtoMessage()
func (*MovieDetail) ProtoReflect ¶
func (x *MovieDetail) ProtoReflect() protoreflect.Message
func (*MovieDetail) Reset ¶
func (x *MovieDetail) Reset()
func (*MovieDetail) String ¶
func (x *MovieDetail) String() string
type MovieUsecase ¶
type MovieUsecase struct {
// contains filtered or unexported fields
}
func NewMovieUsecase ¶
func NewMovieUsecase(mc metadata.MetadataServiceClient, rc rating.RatingServiceClient, repo MovieRepo, logger log.Logger) *MovieUsecase
func (*MovieUsecase) GetMovieDetail ¶
func (m *MovieUsecase) GetMovieDetail(ctx context.Context, ID uint64) (resp *MovieDetail, err error)
Click to show internal directories.
Click to hide internal directories.