pb

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Likerpc_DoLike_FullMethodName            = "/like.likerpc/DoLike"
	Likerpc_GetUserLike_FullMethodName       = "/like.likerpc/GetUserLike"
	Likerpc_GetTargetLikes_FullMethodName    = "/like.likerpc/GetTargetLikes"
	Likerpc_GetUserLikes_FullMethodName      = "/like.likerpc/GetUserLikes"
	Likerpc_GetLikedUsers_FullMethodName     = "/like.likerpc/GetLikedUsers"
	Likerpc_GetTopK_FullMethodName           = "/like.likerpc/GetTopK"
	Likerpc_AddScore_FullMethodName          = "/like.likerpc/AddScore"
	Likerpc_DailyUpdate_FullMethodName       = "/like.likerpc/DailyUpdate"
	Likerpc_ListCatPopularity_FullMethodName = "/like.likerpc/ListCatPopularity"
	Likerpc_AddCatPopularity_FullMethodName  = "/like.likerpc/AddCatPopularity"
	Likerpc_ListTopCat_FullMethodName        = "/like.likerpc/ListTopCat"
)

Variables

View Source
var Likerpc_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "like.likerpc",
	HandlerType: (*LikerpcServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "DoLike",
			Handler:    _Likerpc_DoLike_Handler,
		},
		{
			MethodName: "GetUserLike",
			Handler:    _Likerpc_GetUserLike_Handler,
		},
		{
			MethodName: "GetTargetLikes",
			Handler:    _Likerpc_GetTargetLikes_Handler,
		},
		{
			MethodName: "GetUserLikes",
			Handler:    _Likerpc_GetUserLikes_Handler,
		},
		{
			MethodName: "GetLikedUsers",
			Handler:    _Likerpc_GetLikedUsers_Handler,
		},
		{
			MethodName: "GetTopK",
			Handler:    _Likerpc_GetTopK_Handler,
		},
		{
			MethodName: "AddScore",
			Handler:    _Likerpc_AddScore_Handler,
		},
		{
			MethodName: "DailyUpdate",
			Handler:    _Likerpc_DailyUpdate_Handler,
		},
		{
			MethodName: "ListCatPopularity",
			Handler:    _Likerpc_ListCatPopularity_Handler,
		},
		{
			MethodName: "AddCatPopularity",
			Handler:    _Likerpc_AddCatPopularity_Handler,
		},
		{
			MethodName: "ListTopCat",
			Handler:    _Likerpc_ListTopCat_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "like.proto",
}

Likerpc_ServiceDesc is the grpc.ServiceDesc for Likerpc service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterLikerpcServer added in v1.1.6

func RegisterLikerpcServer(s grpc.ServiceRegistrar, srv LikerpcServer)

Types

type AddCatPopularityReq added in v1.1.3

type AddCatPopularityReq struct {
	CatId string `protobuf:"bytes,1,opt,name=catId,proto3" json:"catId,omitempty"`
	Val   int64  `protobuf:"varint,2,opt,name=val,proto3" json:"val,omitempty"`
	// contains filtered or unexported fields
}

操作猫咪人气

func (*AddCatPopularityReq) Descriptor deprecated added in v1.1.3

func (*AddCatPopularityReq) Descriptor() ([]byte, []int)

Deprecated: Use AddCatPopularityReq.ProtoReflect.Descriptor instead.

func (*AddCatPopularityReq) GetCatId added in v1.1.3

func (x *AddCatPopularityReq) GetCatId() string

func (*AddCatPopularityReq) GetVal added in v1.1.3

func (x *AddCatPopularityReq) GetVal() int64

func (*AddCatPopularityReq) ProtoMessage added in v1.1.3

func (*AddCatPopularityReq) ProtoMessage()

func (*AddCatPopularityReq) ProtoReflect added in v1.1.3

func (x *AddCatPopularityReq) ProtoReflect() protoreflect.Message

func (*AddCatPopularityReq) Reset added in v1.1.3

func (x *AddCatPopularityReq) Reset()

func (*AddCatPopularityReq) String added in v1.1.3

func (x *AddCatPopularityReq) String() string

type AddCatPopularityResp added in v1.1.3

type AddCatPopularityResp struct {
	// contains filtered or unexported fields
}

func (*AddCatPopularityResp) Descriptor deprecated added in v1.1.3

func (*AddCatPopularityResp) Descriptor() ([]byte, []int)

Deprecated: Use AddCatPopularityResp.ProtoReflect.Descriptor instead.

func (*AddCatPopularityResp) ProtoMessage added in v1.1.3

func (*AddCatPopularityResp) ProtoMessage()

func (*AddCatPopularityResp) ProtoReflect added in v1.1.3

func (x *AddCatPopularityResp) ProtoReflect() protoreflect.Message

func (*AddCatPopularityResp) Reset added in v1.1.3

func (x *AddCatPopularityResp) Reset()

func (*AddCatPopularityResp) String added in v1.1.3

func (x *AddCatPopularityResp) String() string

type AddScoreReq added in v1.1.3

type AddScoreReq struct {
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Id   string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Val  int64  `protobuf:"varint,3,opt,name=val,proto3" json:"val,omitempty"`
	// contains filtered or unexported fields
}

增加分数

func (*AddScoreReq) Descriptor deprecated added in v1.1.3

func (*AddScoreReq) Descriptor() ([]byte, []int)

Deprecated: Use AddScoreReq.ProtoReflect.Descriptor instead.

func (*AddScoreReq) GetId added in v1.1.3

func (x *AddScoreReq) GetId() string

func (*AddScoreReq) GetType added in v1.1.3

func (x *AddScoreReq) GetType() string

func (*AddScoreReq) GetVal added in v1.1.3

func (x *AddScoreReq) GetVal() int64

func (*AddScoreReq) ProtoMessage added in v1.1.3

func (*AddScoreReq) ProtoMessage()

func (*AddScoreReq) ProtoReflect added in v1.1.3

func (x *AddScoreReq) ProtoReflect() protoreflect.Message

func (*AddScoreReq) Reset added in v1.1.3

func (x *AddScoreReq) Reset()

func (*AddScoreReq) String added in v1.1.3

func (x *AddScoreReq) String() string

type AddScoreResp added in v1.1.3

type AddScoreResp struct {
	Val int64 `protobuf:"varint,2,opt,name=val,proto3" json:"val,omitempty"`
	// contains filtered or unexported fields
}

func (*AddScoreResp) Descriptor deprecated added in v1.1.3

func (*AddScoreResp) Descriptor() ([]byte, []int)

Deprecated: Use AddScoreResp.ProtoReflect.Descriptor instead.

func (*AddScoreResp) GetVal added in v1.1.3

func (x *AddScoreResp) GetVal() int64

func (*AddScoreResp) ProtoMessage added in v1.1.3

func (*AddScoreResp) ProtoMessage()

func (*AddScoreResp) ProtoReflect added in v1.1.3

func (x *AddScoreResp) ProtoReflect() protoreflect.Message

func (*AddScoreResp) Reset added in v1.1.3

func (x *AddScoreResp) Reset()

func (*AddScoreResp) String added in v1.1.3

func (x *AddScoreResp) String() string

type CatPop added in v1.1.3

type CatPop struct {
	CatId      string `protobuf:"bytes,1,opt,name=catId,proto3" json:"catId,omitempty"`
	Popularity int64  `protobuf:"varint,2,opt,name=popularity,proto3" json:"popularity,omitempty"`
	// contains filtered or unexported fields
}

func (*CatPop) Descriptor deprecated added in v1.1.3

func (*CatPop) Descriptor() ([]byte, []int)

Deprecated: Use CatPop.ProtoReflect.Descriptor instead.

func (*CatPop) GetCatId added in v1.1.3

func (x *CatPop) GetCatId() string

func (*CatPop) GetPopularity added in v1.1.3

func (x *CatPop) GetPopularity() int64

func (*CatPop) ProtoMessage added in v1.1.3

func (*CatPop) ProtoMessage()

func (*CatPop) ProtoReflect added in v1.1.3

func (x *CatPop) ProtoReflect() protoreflect.Message

func (*CatPop) Reset added in v1.1.3

func (x *CatPop) Reset()

func (*CatPop) String added in v1.1.3

func (x *CatPop) String() string

type DailyUpdateReq added in v1.1.3

type DailyUpdateReq struct {
	// contains filtered or unexported fields
}

func (*DailyUpdateReq) Descriptor deprecated added in v1.1.3

func (*DailyUpdateReq) Descriptor() ([]byte, []int)

Deprecated: Use DailyUpdateReq.ProtoReflect.Descriptor instead.

func (*DailyUpdateReq) ProtoMessage added in v1.1.3

func (*DailyUpdateReq) ProtoMessage()

func (*DailyUpdateReq) ProtoReflect added in v1.1.3

func (x *DailyUpdateReq) ProtoReflect() protoreflect.Message

func (*DailyUpdateReq) Reset added in v1.1.3

func (x *DailyUpdateReq) Reset()

func (*DailyUpdateReq) String added in v1.1.3

func (x *DailyUpdateReq) String() string

type DailyUpdateResp added in v1.1.3

type DailyUpdateResp struct {
	// contains filtered or unexported fields
}

func (*DailyUpdateResp) Descriptor deprecated added in v1.1.3

func (*DailyUpdateResp) Descriptor() ([]byte, []int)

Deprecated: Use DailyUpdateResp.ProtoReflect.Descriptor instead.

func (*DailyUpdateResp) ProtoMessage added in v1.1.3

func (*DailyUpdateResp) ProtoMessage()

func (*DailyUpdateResp) ProtoReflect added in v1.1.3

func (x *DailyUpdateResp) ProtoReflect() protoreflect.Message

func (*DailyUpdateResp) Reset added in v1.1.3

func (x *DailyUpdateResp) Reset()

func (*DailyUpdateResp) String added in v1.1.3

func (x *DailyUpdateResp) String() string

type DoLikeReq

type DoLikeReq struct {
	UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	// 点赞的目标ID,可以是评论ID,文章ID等
	TargetId string `protobuf:"bytes,2,opt,name=targetId,proto3" json:"targetId,omitempty"`
	// 点赞的类型,点赞评论、点赞文章等都可以视为点赞的不同类型(类型常量定义在like/types.go)
	Type int64 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"`
	// 对象所关联的ID,比如评论点赞对应文章ID等
	AssociatedId string `protobuf:"bytes,4,opt,name=associatedId,proto3" json:"associatedId,omitempty"`
	// contains filtered or unexported fields
}

func (*DoLikeReq) Descriptor deprecated

func (*DoLikeReq) Descriptor() ([]byte, []int)

Deprecated: Use DoLikeReq.ProtoReflect.Descriptor instead.

func (*DoLikeReq) GetAssociatedId

func (x *DoLikeReq) GetAssociatedId() string

func (*DoLikeReq) GetTargetId

func (x *DoLikeReq) GetTargetId() string

func (*DoLikeReq) GetType

func (x *DoLikeReq) GetType() int64

func (*DoLikeReq) GetUserId

func (x *DoLikeReq) GetUserId() string

func (*DoLikeReq) ProtoMessage

func (*DoLikeReq) ProtoMessage()

func (*DoLikeReq) ProtoReflect

func (x *DoLikeReq) ProtoReflect() protoreflect.Message

func (*DoLikeReq) Reset

func (x *DoLikeReq) Reset()

func (*DoLikeReq) String

func (x *DoLikeReq) String() string

type DoLikeResp

type DoLikeResp struct {
	// contains filtered or unexported fields
}

func (*DoLikeResp) Descriptor deprecated

func (*DoLikeResp) Descriptor() ([]byte, []int)

Deprecated: Use DoLikeResp.ProtoReflect.Descriptor instead.

func (*DoLikeResp) ProtoMessage

func (*DoLikeResp) ProtoMessage()

func (*DoLikeResp) ProtoReflect

func (x *DoLikeResp) ProtoReflect() protoreflect.Message

func (*DoLikeResp) Reset

func (x *DoLikeResp) Reset()

func (*DoLikeResp) String

func (x *DoLikeResp) String() string

type GetLikedUsersReq added in v1.1.5

type GetLikedUsersReq struct {
	TargetId   string `protobuf:"bytes,1,opt,name=targetId,proto3" json:"targetId,omitempty"`
	TargetType int64  `protobuf:"varint,2,opt,name=targetType,proto3" json:"targetType,omitempty"`
	// contains filtered or unexported fields
}

func (*GetLikedUsersReq) Descriptor deprecated added in v1.1.5

func (*GetLikedUsersReq) Descriptor() ([]byte, []int)

Deprecated: Use GetLikedUsersReq.ProtoReflect.Descriptor instead.

func (*GetLikedUsersReq) GetTargetId added in v1.1.5

func (x *GetLikedUsersReq) GetTargetId() string

func (*GetLikedUsersReq) GetTargetType added in v1.1.5

func (x *GetLikedUsersReq) GetTargetType() int64

func (*GetLikedUsersReq) ProtoMessage added in v1.1.5

func (*GetLikedUsersReq) ProtoMessage()

func (*GetLikedUsersReq) ProtoReflect added in v1.1.5

func (x *GetLikedUsersReq) ProtoReflect() protoreflect.Message

func (*GetLikedUsersReq) Reset added in v1.1.5

func (x *GetLikedUsersReq) Reset()

func (*GetLikedUsersReq) String added in v1.1.5

func (x *GetLikedUsersReq) String() string

type GetLikedUsersResp added in v1.1.5

type GetLikedUsersResp struct {
	UserIds []string `protobuf:"bytes,1,rep,name=userIds,proto3" json:"userIds,omitempty"`
	// contains filtered or unexported fields
}

func (*GetLikedUsersResp) Descriptor deprecated added in v1.1.5

func (*GetLikedUsersResp) Descriptor() ([]byte, []int)

Deprecated: Use GetLikedUsersResp.ProtoReflect.Descriptor instead.

func (*GetLikedUsersResp) GetUserIds added in v1.1.5

func (x *GetLikedUsersResp) GetUserIds() []string

func (*GetLikedUsersResp) ProtoMessage added in v1.1.5

func (*GetLikedUsersResp) ProtoMessage()

func (*GetLikedUsersResp) ProtoReflect added in v1.1.5

func (x *GetLikedUsersResp) ProtoReflect() protoreflect.Message

func (*GetLikedUsersResp) Reset added in v1.1.5

func (x *GetLikedUsersResp) Reset()

func (*GetLikedUsersResp) String added in v1.1.5

func (x *GetLikedUsersResp) String() string

type GetTargetLikesReq

type GetTargetLikesReq struct {
	TargetId string `protobuf:"bytes,1,opt,name=targetId,proto3" json:"targetId,omitempty"`
	Type     int64  `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTargetLikesReq) Descriptor deprecated

func (*GetTargetLikesReq) Descriptor() ([]byte, []int)

Deprecated: Use GetTargetLikesReq.ProtoReflect.Descriptor instead.

func (*GetTargetLikesReq) GetTargetId

func (x *GetTargetLikesReq) GetTargetId() string

func (*GetTargetLikesReq) GetType

func (x *GetTargetLikesReq) GetType() int64

func (*GetTargetLikesReq) ProtoMessage

func (*GetTargetLikesReq) ProtoMessage()

func (*GetTargetLikesReq) ProtoReflect

func (x *GetTargetLikesReq) ProtoReflect() protoreflect.Message

func (*GetTargetLikesReq) Reset

func (x *GetTargetLikesReq) Reset()

func (*GetTargetLikesReq) String

func (x *GetTargetLikesReq) String() string

type GetTargetLikesResp

type GetTargetLikesResp struct {
	Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTargetLikesResp) Descriptor deprecated

func (*GetTargetLikesResp) Descriptor() ([]byte, []int)

Deprecated: Use GetTargetLikesResp.ProtoReflect.Descriptor instead.

func (*GetTargetLikesResp) GetCount

func (x *GetTargetLikesResp) GetCount() int64

func (*GetTargetLikesResp) ProtoMessage

func (*GetTargetLikesResp) ProtoMessage()

func (*GetTargetLikesResp) ProtoReflect

func (x *GetTargetLikesResp) ProtoReflect() protoreflect.Message

func (*GetTargetLikesResp) Reset

func (x *GetTargetLikesResp) Reset()

func (*GetTargetLikesResp) String

func (x *GetTargetLikesResp) String() string

type GetTopKReq added in v1.1.3

type GetTopKReq struct {
	K     int64  `protobuf:"varint,1,opt,name=k,proto3" json:"k,omitempty"`
	Type  string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Range int64  `protobuf:"varint,3,opt,name=range,proto3" json:"range,omitempty"`
	// contains filtered or unexported fields
}

获取 top k

func (*GetTopKReq) Descriptor deprecated added in v1.1.3

func (*GetTopKReq) Descriptor() ([]byte, []int)

Deprecated: Use GetTopKReq.ProtoReflect.Descriptor instead.

func (*GetTopKReq) GetK added in v1.1.3

func (x *GetTopKReq) GetK() int64

func (*GetTopKReq) GetRange added in v1.1.3

func (x *GetTopKReq) GetRange() int64

func (*GetTopKReq) GetType added in v1.1.3

func (x *GetTopKReq) GetType() string

func (*GetTopKReq) ProtoMessage added in v1.1.3

func (*GetTopKReq) ProtoMessage()

func (*GetTopKReq) ProtoReflect added in v1.1.3

func (x *GetTopKReq) ProtoReflect() protoreflect.Message

func (*GetTopKReq) Reset added in v1.1.3

func (x *GetTopKReq) Reset()

func (*GetTopKReq) String added in v1.1.3

func (x *GetTopKReq) String() string

type GetTopKResp added in v1.1.3

type GetTopKResp struct {
	Item []*ItemScore `protobuf:"bytes,1,rep,name=item,proto3" json:"item,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTopKResp) Descriptor deprecated added in v1.1.3

func (*GetTopKResp) Descriptor() ([]byte, []int)

Deprecated: Use GetTopKResp.ProtoReflect.Descriptor instead.

func (*GetTopKResp) GetItem added in v1.1.3

func (x *GetTopKResp) GetItem() []*ItemScore

func (*GetTopKResp) ProtoMessage added in v1.1.3

func (*GetTopKResp) ProtoMessage()

func (*GetTopKResp) ProtoReflect added in v1.1.3

func (x *GetTopKResp) ProtoReflect() protoreflect.Message

func (*GetTopKResp) Reset added in v1.1.3

func (x *GetTopKResp) Reset()

func (*GetTopKResp) String added in v1.1.3

func (x *GetTopKResp) String() string

type GetUserLikedReq

type GetUserLikedReq struct {
	UserId   string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	TargetId string `protobuf:"bytes,2,opt,name=targetId,proto3" json:"targetId,omitempty"`
	Type     int64  `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserLikedReq) Descriptor deprecated

func (*GetUserLikedReq) Descriptor() ([]byte, []int)

Deprecated: Use GetUserLikedReq.ProtoReflect.Descriptor instead.

func (*GetUserLikedReq) GetTargetId

func (x *GetUserLikedReq) GetTargetId() string

func (*GetUserLikedReq) GetType

func (x *GetUserLikedReq) GetType() int64

func (*GetUserLikedReq) GetUserId

func (x *GetUserLikedReq) GetUserId() string

func (*GetUserLikedReq) ProtoMessage

func (*GetUserLikedReq) ProtoMessage()

func (*GetUserLikedReq) ProtoReflect

func (x *GetUserLikedReq) ProtoReflect() protoreflect.Message

func (*GetUserLikedReq) Reset

func (x *GetUserLikedReq) Reset()

func (*GetUserLikedReq) String

func (x *GetUserLikedReq) String() string

type GetUserLikedResp

type GetUserLikedResp struct {
	Liked bool `protobuf:"varint,1,opt,name=liked,proto3" json:"liked,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserLikedResp) Descriptor deprecated

func (*GetUserLikedResp) Descriptor() ([]byte, []int)

Deprecated: Use GetUserLikedResp.ProtoReflect.Descriptor instead.

func (*GetUserLikedResp) GetLiked

func (x *GetUserLikedResp) GetLiked() bool

func (*GetUserLikedResp) ProtoMessage

func (*GetUserLikedResp) ProtoMessage()

func (*GetUserLikedResp) ProtoReflect

func (x *GetUserLikedResp) ProtoReflect() protoreflect.Message

func (*GetUserLikedResp) Reset

func (x *GetUserLikedResp) Reset()

func (*GetUserLikedResp) String

func (x *GetUserLikedResp) String() string

type GetUserLikesReq added in v1.1.5

type GetUserLikesReq struct {
	UserId     string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	TargetType int64  `protobuf:"varint,2,opt,name=targetType,proto3" json:"targetType,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserLikesReq) Descriptor deprecated added in v1.1.5

func (*GetUserLikesReq) Descriptor() ([]byte, []int)

Deprecated: Use GetUserLikesReq.ProtoReflect.Descriptor instead.

func (*GetUserLikesReq) GetTargetType added in v1.1.5

func (x *GetUserLikesReq) GetTargetType() int64

func (*GetUserLikesReq) GetUserId added in v1.1.5

func (x *GetUserLikesReq) GetUserId() string

func (*GetUserLikesReq) ProtoMessage added in v1.1.5

func (*GetUserLikesReq) ProtoMessage()

func (*GetUserLikesReq) ProtoReflect added in v1.1.5

func (x *GetUserLikesReq) ProtoReflect() protoreflect.Message

func (*GetUserLikesReq) Reset added in v1.1.5

func (x *GetUserLikesReq) Reset()

func (*GetUserLikesReq) String added in v1.1.5

func (x *GetUserLikesReq) String() string

type GetUserLikesResp added in v1.1.5

type GetUserLikesResp struct {
	Likes []*Like `protobuf:"bytes,1,rep,name=likes,proto3" json:"likes,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserLikesResp) Descriptor deprecated added in v1.1.5

func (*GetUserLikesResp) Descriptor() ([]byte, []int)

Deprecated: Use GetUserLikesResp.ProtoReflect.Descriptor instead.

func (*GetUserLikesResp) GetLikes added in v1.1.5

func (x *GetUserLikesResp) GetLikes() []*Like

func (*GetUserLikesResp) ProtoMessage added in v1.1.5

func (*GetUserLikesResp) ProtoMessage()

func (*GetUserLikesResp) ProtoReflect added in v1.1.5

func (x *GetUserLikesResp) ProtoReflect() protoreflect.Message

func (*GetUserLikesResp) Reset added in v1.1.5

func (x *GetUserLikesResp) Reset()

func (*GetUserLikesResp) String added in v1.1.5

func (x *GetUserLikesResp) String() string

type ItemScore added in v1.1.3

type ItemScore struct {
	Id    string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Score int64  `protobuf:"varint,2,opt,name=score,proto3" json:"score,omitempty"`
	// contains filtered or unexported fields
}

func (*ItemScore) Descriptor deprecated added in v1.1.3

func (*ItemScore) Descriptor() ([]byte, []int)

Deprecated: Use ItemScore.ProtoReflect.Descriptor instead.

func (*ItemScore) GetId added in v1.1.3

func (x *ItemScore) GetId() string

func (*ItemScore) GetScore added in v1.1.3

func (x *ItemScore) GetScore() int64

func (*ItemScore) ProtoMessage added in v1.1.3

func (*ItemScore) ProtoMessage()

func (*ItemScore) ProtoReflect added in v1.1.3

func (x *ItemScore) ProtoReflect() protoreflect.Message

func (*ItemScore) Reset added in v1.1.3

func (x *ItemScore) Reset()

func (*ItemScore) String added in v1.1.3

func (x *ItemScore) String() string

type Like added in v1.1.5

type Like struct {
	TargetId     string `protobuf:"bytes,3,opt,name=targetId,proto3" json:"targetId,omitempty"`
	AssociatedId string `protobuf:"bytes,4,opt,name=associatedId,proto3" json:"associatedId,omitempty"`
	// contains filtered or unexported fields
}

func (*Like) Descriptor deprecated added in v1.1.5

func (*Like) Descriptor() ([]byte, []int)

Deprecated: Use Like.ProtoReflect.Descriptor instead.

func (*Like) GetAssociatedId added in v1.1.5

func (x *Like) GetAssociatedId() string

func (*Like) GetTargetId added in v1.1.5

func (x *Like) GetTargetId() string

func (*Like) ProtoMessage added in v1.1.5

func (*Like) ProtoMessage()

func (*Like) ProtoReflect added in v1.1.5

func (x *Like) ProtoReflect() protoreflect.Message

func (*Like) Reset added in v1.1.5

func (x *Like) Reset()

func (*Like) String added in v1.1.5

func (x *Like) String() string

type LikerpcClient added in v1.1.6

type LikerpcClient interface {
	// 点赞/取消赞
	DoLike(ctx context.Context, in *DoLikeReq, opts ...grpc.CallOption) (*DoLikeResp, error)
	// 获取用户是否点赞
	GetUserLike(ctx context.Context, in *GetUserLikedReq, opts ...grpc.CallOption) (*GetUserLikedResp, error)
	// 获取目标点赞数
	GetTargetLikes(ctx context.Context, in *GetTargetLikesReq, opts ...grpc.CallOption) (*GetTargetLikesResp, error)
	// 查看用户点赞列表
	GetUserLikes(ctx context.Context, in *GetUserLikesReq, opts ...grpc.CallOption) (*GetUserLikesResp, error)
	// 查看喜欢某个东西的用户
	GetLikedUsers(ctx context.Context, in *GetLikedUsersReq, opts ...grpc.CallOption) (*GetLikedUsersResp, error)
	GetTopK(ctx context.Context, in *GetTopKReq, opts ...grpc.CallOption) (*GetTopKResp, error)
	AddScore(ctx context.Context, in *AddScoreReq, opts ...grpc.CallOption) (*AddScoreResp, error)
	DailyUpdate(ctx context.Context, in *DailyUpdateReq, opts ...grpc.CallOption) (*DailyUpdateResp, error)
	// popularity
	ListCatPopularity(ctx context.Context, in *ListCatPopularityReq, opts ...grpc.CallOption) (*ListCatPopularityResp, error)
	AddCatPopularity(ctx context.Context, in *AddCatPopularityReq, opts ...grpc.CallOption) (*AddCatPopularityResp, error)
	ListTopCat(ctx context.Context, in *ListTopCatReq, opts ...grpc.CallOption) (*ListTopCatResp, error)
}

LikerpcClient is the client API for Likerpc 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 NewLikerpcClient added in v1.1.6

func NewLikerpcClient(cc grpc.ClientConnInterface) LikerpcClient

type LikerpcServer added in v1.1.6

type LikerpcServer interface {
	// 点赞/取消赞
	DoLike(context.Context, *DoLikeReq) (*DoLikeResp, error)
	// 获取用户是否点赞
	GetUserLike(context.Context, *GetUserLikedReq) (*GetUserLikedResp, error)
	// 获取目标点赞数
	GetTargetLikes(context.Context, *GetTargetLikesReq) (*GetTargetLikesResp, error)
	// 查看用户点赞列表
	GetUserLikes(context.Context, *GetUserLikesReq) (*GetUserLikesResp, error)
	// 查看喜欢某个东西的用户
	GetLikedUsers(context.Context, *GetLikedUsersReq) (*GetLikedUsersResp, error)
	GetTopK(context.Context, *GetTopKReq) (*GetTopKResp, error)
	AddScore(context.Context, *AddScoreReq) (*AddScoreResp, error)
	DailyUpdate(context.Context, *DailyUpdateReq) (*DailyUpdateResp, error)
	// popularity
	ListCatPopularity(context.Context, *ListCatPopularityReq) (*ListCatPopularityResp, error)
	AddCatPopularity(context.Context, *AddCatPopularityReq) (*AddCatPopularityResp, error)
	ListTopCat(context.Context, *ListTopCatReq) (*ListTopCatResp, error)
	// contains filtered or unexported methods
}

LikerpcServer is the server API for Likerpc service. All implementations must embed UnimplementedLikerpcServer for forward compatibility

type ListCatPopularityReq added in v1.1.3

type ListCatPopularityReq struct {
	CatId []string `protobuf:"bytes,1,rep,name=catId,proto3" json:"catId,omitempty"`
	// contains filtered or unexported fields
}

获取猫咪人气

func (*ListCatPopularityReq) Descriptor deprecated added in v1.1.3

func (*ListCatPopularityReq) Descriptor() ([]byte, []int)

Deprecated: Use ListCatPopularityReq.ProtoReflect.Descriptor instead.

func (*ListCatPopularityReq) GetCatId added in v1.1.3

func (x *ListCatPopularityReq) GetCatId() []string

func (*ListCatPopularityReq) ProtoMessage added in v1.1.3

func (*ListCatPopularityReq) ProtoMessage()

func (*ListCatPopularityReq) ProtoReflect added in v1.1.3

func (x *ListCatPopularityReq) ProtoReflect() protoreflect.Message

func (*ListCatPopularityReq) Reset added in v1.1.3

func (x *ListCatPopularityReq) Reset()

func (*ListCatPopularityReq) String added in v1.1.3

func (x *ListCatPopularityReq) String() string

type ListCatPopularityResp added in v1.1.3

type ListCatPopularityResp struct {
	Cats []*CatPop `protobuf:"bytes,1,rep,name=cats,proto3" json:"cats,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCatPopularityResp) Descriptor deprecated added in v1.1.3

func (*ListCatPopularityResp) Descriptor() ([]byte, []int)

Deprecated: Use ListCatPopularityResp.ProtoReflect.Descriptor instead.

func (*ListCatPopularityResp) GetCats added in v1.1.3

func (x *ListCatPopularityResp) GetCats() []*CatPop

func (*ListCatPopularityResp) ProtoMessage added in v1.1.3

func (*ListCatPopularityResp) ProtoMessage()

func (*ListCatPopularityResp) ProtoReflect added in v1.1.3

func (x *ListCatPopularityResp) ProtoReflect() protoreflect.Message

func (*ListCatPopularityResp) Reset added in v1.1.3

func (x *ListCatPopularityResp) Reset()

func (*ListCatPopularityResp) String added in v1.1.3

func (x *ListCatPopularityResp) String() string

type ListTopCatReq added in v1.1.3

type ListTopCatReq struct {
	K int64 `protobuf:"varint,1,opt,name=k,proto3" json:"k,omitempty"`
	// contains filtered or unexported fields
}

查看 topk 猫咪

func (*ListTopCatReq) Descriptor deprecated added in v1.1.3

func (*ListTopCatReq) Descriptor() ([]byte, []int)

Deprecated: Use ListTopCatReq.ProtoReflect.Descriptor instead.

func (*ListTopCatReq) GetK added in v1.1.3

func (x *ListTopCatReq) GetK() int64

func (*ListTopCatReq) ProtoMessage added in v1.1.3

func (*ListTopCatReq) ProtoMessage()

func (*ListTopCatReq) ProtoReflect added in v1.1.3

func (x *ListTopCatReq) ProtoReflect() protoreflect.Message

func (*ListTopCatReq) Reset added in v1.1.3

func (x *ListTopCatReq) Reset()

func (*ListTopCatReq) String added in v1.1.3

func (x *ListTopCatReq) String() string

type ListTopCatResp added in v1.1.3

type ListTopCatResp struct {
	Cats []*CatPop `protobuf:"bytes,1,rep,name=cats,proto3" json:"cats,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTopCatResp) Descriptor deprecated added in v1.1.3

func (*ListTopCatResp) Descriptor() ([]byte, []int)

Deprecated: Use ListTopCatResp.ProtoReflect.Descriptor instead.

func (*ListTopCatResp) GetCats added in v1.1.3

func (x *ListTopCatResp) GetCats() []*CatPop

func (*ListTopCatResp) ProtoMessage added in v1.1.3

func (*ListTopCatResp) ProtoMessage()

func (*ListTopCatResp) ProtoReflect added in v1.1.3

func (x *ListTopCatResp) ProtoReflect() protoreflect.Message

func (*ListTopCatResp) Reset added in v1.1.3

func (x *ListTopCatResp) Reset()

func (*ListTopCatResp) String added in v1.1.3

func (x *ListTopCatResp) String() string

type UnimplementedLikerpcServer added in v1.1.6

type UnimplementedLikerpcServer struct {
}

UnimplementedLikerpcServer must be embedded to have forward compatible implementations.

func (UnimplementedLikerpcServer) AddCatPopularity added in v1.1.6

func (UnimplementedLikerpcServer) AddScore added in v1.1.6

func (UnimplementedLikerpcServer) DailyUpdate added in v1.1.6

func (UnimplementedLikerpcServer) DoLike added in v1.1.6

func (UnimplementedLikerpcServer) GetLikedUsers added in v1.1.6

func (UnimplementedLikerpcServer) GetTargetLikes added in v1.1.6

func (UnimplementedLikerpcServer) GetTopK added in v1.1.6

func (UnimplementedLikerpcServer) GetUserLike added in v1.1.6

func (UnimplementedLikerpcServer) GetUserLikes added in v1.1.6

func (UnimplementedLikerpcServer) ListCatPopularity added in v1.1.6

func (UnimplementedLikerpcServer) ListTopCat added in v1.1.6

type UnsafeLikerpcServer added in v1.1.6

type UnsafeLikerpcServer interface {
	// contains filtered or unexported methods
}

UnsafeLikerpcServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LikerpcServer will result in compilation errors.

Jump to

Keyboard shortcuts

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