Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterVideoServiceServer(s grpc.ServiceRegistrar, srv VideoServiceServer)
- type GetFavoriteAndFavoritedCntReq
- func (*GetFavoriteAndFavoritedCntReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetFavoriteAndFavoritedCntReq) GetUserId() int64
- func (*GetFavoriteAndFavoritedCntReq) ProtoMessage()
- func (x *GetFavoriteAndFavoritedCntReq) ProtoReflect() protoreflect.Message
- func (x *GetFavoriteAndFavoritedCntReq) Reset()
- func (x *GetFavoriteAndFavoritedCntReq) String() string
- type GetFavoriteAndFavoritedCntResp
- func (*GetFavoriteAndFavoritedCntResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetFavoriteAndFavoritedCntResp) GetCode() int64
- func (x *GetFavoriteAndFavoritedCntResp) GetFavoriteCount() int64
- func (x *GetFavoriteAndFavoritedCntResp) GetTotalFavorited() int64
- func (*GetFavoriteAndFavoritedCntResp) ProtoMessage()
- func (x *GetFavoriteAndFavoritedCntResp) ProtoReflect() protoreflect.Message
- func (x *GetFavoriteAndFavoritedCntResp) Reset()
- func (x *GetFavoriteAndFavoritedCntResp) String() string
- type UnimplementedVideoServiceServer
- type UnsafeVideoServiceServer
- type VideoServiceClient
- type VideoServiceServer
Constants ¶
const (
VideoService_GetFavoriteAndFavoritedCnt_FullMethodName = "/video.VideoService/GetFavoriteAndFavoritedCnt"
)
Variables ¶
var File_video_proto protoreflect.FileDescriptor
var VideoService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "video.VideoService", HandlerType: (*VideoServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetFavoriteAndFavoritedCnt", Handler: _VideoService_GetFavoriteAndFavoritedCnt_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "video.proto", }
VideoService_ServiceDesc is the grpc.ServiceDesc for VideoService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterVideoServiceServer ¶
func RegisterVideoServiceServer(s grpc.ServiceRegistrar, srv VideoServiceServer)
Types ¶
type GetFavoriteAndFavoritedCntReq ¶
type GetFavoriteAndFavoritedCntReq struct { UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` // contains filtered or unexported fields }
func (*GetFavoriteAndFavoritedCntReq) Descriptor
deprecated
func (*GetFavoriteAndFavoritedCntReq) Descriptor() ([]byte, []int)
Deprecated: Use GetFavoriteAndFavoritedCntReq.ProtoReflect.Descriptor instead.
func (*GetFavoriteAndFavoritedCntReq) GetUserId ¶
func (x *GetFavoriteAndFavoritedCntReq) GetUserId() int64
func (*GetFavoriteAndFavoritedCntReq) ProtoMessage ¶
func (*GetFavoriteAndFavoritedCntReq) ProtoMessage()
func (*GetFavoriteAndFavoritedCntReq) ProtoReflect ¶
func (x *GetFavoriteAndFavoritedCntReq) ProtoReflect() protoreflect.Message
func (*GetFavoriteAndFavoritedCntReq) Reset ¶
func (x *GetFavoriteAndFavoritedCntReq) Reset()
func (*GetFavoriteAndFavoritedCntReq) String ¶
func (x *GetFavoriteAndFavoritedCntReq) String() string
type GetFavoriteAndFavoritedCntResp ¶
type GetFavoriteAndFavoritedCntResp struct { Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` TotalFavorited int64 `protobuf:"varint,2,opt,name=totalFavorited,proto3" json:"totalFavorited,omitempty"` FavoriteCount int64 `protobuf:"varint,3,opt,name=favoriteCount,proto3" json:"favoriteCount,omitempty"` // contains filtered or unexported fields }
func (*GetFavoriteAndFavoritedCntResp) Descriptor
deprecated
func (*GetFavoriteAndFavoritedCntResp) Descriptor() ([]byte, []int)
Deprecated: Use GetFavoriteAndFavoritedCntResp.ProtoReflect.Descriptor instead.
func (*GetFavoriteAndFavoritedCntResp) GetCode ¶
func (x *GetFavoriteAndFavoritedCntResp) GetCode() int64
func (*GetFavoriteAndFavoritedCntResp) GetFavoriteCount ¶
func (x *GetFavoriteAndFavoritedCntResp) GetFavoriteCount() int64
func (*GetFavoriteAndFavoritedCntResp) GetTotalFavorited ¶
func (x *GetFavoriteAndFavoritedCntResp) GetTotalFavorited() int64
func (*GetFavoriteAndFavoritedCntResp) ProtoMessage ¶
func (*GetFavoriteAndFavoritedCntResp) ProtoMessage()
func (*GetFavoriteAndFavoritedCntResp) ProtoReflect ¶
func (x *GetFavoriteAndFavoritedCntResp) ProtoReflect() protoreflect.Message
func (*GetFavoriteAndFavoritedCntResp) Reset ¶
func (x *GetFavoriteAndFavoritedCntResp) Reset()
func (*GetFavoriteAndFavoritedCntResp) String ¶
func (x *GetFavoriteAndFavoritedCntResp) String() string
type UnimplementedVideoServiceServer ¶
type UnimplementedVideoServiceServer struct { }
UnimplementedVideoServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedVideoServiceServer) GetFavoriteAndFavoritedCnt ¶
func (UnimplementedVideoServiceServer) GetFavoriteAndFavoritedCnt(context.Context, *GetFavoriteAndFavoritedCntReq) (*GetFavoriteAndFavoritedCntResp, error)
type UnsafeVideoServiceServer ¶
type UnsafeVideoServiceServer interface {
// contains filtered or unexported methods
}
UnsafeVideoServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VideoServiceServer will result in compilation errors.
type VideoServiceClient ¶
type VideoServiceClient interface {
GetFavoriteAndFavoritedCnt(ctx context.Context, in *GetFavoriteAndFavoritedCntReq, opts ...grpc.CallOption) (*GetFavoriteAndFavoritedCntResp, error)
}
VideoServiceClient is the client API for VideoService 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 NewVideoServiceClient ¶
func NewVideoServiceClient(cc grpc.ClientConnInterface) VideoServiceClient
type VideoServiceServer ¶
type VideoServiceServer interface { GetFavoriteAndFavoritedCnt(context.Context, *GetFavoriteAndFavoritedCntReq) (*GetFavoriteAndFavoritedCntResp, error) // contains filtered or unexported methods }
VideoServiceServer is the server API for VideoService service. All implementations must embed UnimplementedVideoServiceServer for forward compatibility