__

package
v0.0.0-...-bdd2a71 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VideoService_GetFavoriteAndFavoritedCnt_FullMethodName = "/video.VideoService/GetFavoriteAndFavoritedCnt"
)

Variables

View Source
var File_video_proto protoreflect.FileDescriptor
View Source
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 (*GetFavoriteAndFavoritedCntReq) Reset

func (x *GetFavoriteAndFavoritedCntReq) Reset()

func (*GetFavoriteAndFavoritedCntReq) 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 (*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 (*GetFavoriteAndFavoritedCntResp) Reset

func (x *GetFavoriteAndFavoritedCntResp) Reset()

func (*GetFavoriteAndFavoritedCntResp) String

type UnimplementedVideoServiceServer

type UnimplementedVideoServiceServer struct {
}

UnimplementedVideoServiceServer must be embedded to have forward compatible implementations.

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.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL