Documentation ¶
Index ¶
- Variables
- func RegisterUserLikeItemServiceServer(s grpc.ServiceRegistrar, srv UserLikeItemServiceServer)
- type GetItemLikesRequest
- func (*GetItemLikesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetItemLikesRequest) GetIds() []int32
- func (*GetItemLikesRequest) ProtoMessage()
- func (x *GetItemLikesRequest) ProtoReflect() protoreflect.Message
- func (x *GetItemLikesRequest) Reset()
- func (x *GetItemLikesRequest) String() string
- type GetItemLikesResponse
- func (*GetItemLikesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetItemLikesResponse) GetData() map[int32]int32
- func (*GetItemLikesResponse) ProtoMessage()
- func (x *GetItemLikesResponse) ProtoReflect() protoreflect.Message
- func (x *GetItemLikesResponse) Reset()
- func (x *GetItemLikesResponse) String() string
- type UnimplementedUserLikeItemServiceServer
- type UnsafeUserLikeItemServiceServer
- type UserLikeItemServiceClient
- type UserLikeItemServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_proto_user_like_item_proto protoreflect.FileDescriptor
var UserLikeItemService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.UserLikeItemService", HandlerType: (*UserLikeItemServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetItemLikes", Handler: _UserLikeItemService_GetItemLikes_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/user_like_item.proto", }
UserLikeItemService_ServiceDesc is the grpc.ServiceDesc for UserLikeItemService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUserLikeItemServiceServer ¶
func RegisterUserLikeItemServiceServer(s grpc.ServiceRegistrar, srv UserLikeItemServiceServer)
Types ¶
type GetItemLikesRequest ¶
type GetItemLikesRequest struct { Ids []int32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*GetItemLikesRequest) Descriptor
deprecated
func (*GetItemLikesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetItemLikesRequest.ProtoReflect.Descriptor instead.
func (*GetItemLikesRequest) GetIds ¶
func (x *GetItemLikesRequest) GetIds() []int32
func (*GetItemLikesRequest) ProtoMessage ¶
func (*GetItemLikesRequest) ProtoMessage()
func (*GetItemLikesRequest) ProtoReflect ¶
func (x *GetItemLikesRequest) ProtoReflect() protoreflect.Message
func (*GetItemLikesRequest) Reset ¶
func (x *GetItemLikesRequest) Reset()
func (*GetItemLikesRequest) String ¶
func (x *GetItemLikesRequest) String() string
type GetItemLikesResponse ¶
type GetItemLikesResponse struct { Data map[int32]int32 `` /* 151-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GetItemLikesResponse) Descriptor
deprecated
func (*GetItemLikesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetItemLikesResponse.ProtoReflect.Descriptor instead.
func (*GetItemLikesResponse) GetData ¶
func (x *GetItemLikesResponse) GetData() map[int32]int32
func (*GetItemLikesResponse) ProtoMessage ¶
func (*GetItemLikesResponse) ProtoMessage()
func (*GetItemLikesResponse) ProtoReflect ¶
func (x *GetItemLikesResponse) ProtoReflect() protoreflect.Message
func (*GetItemLikesResponse) Reset ¶
func (x *GetItemLikesResponse) Reset()
func (*GetItemLikesResponse) String ¶
func (x *GetItemLikesResponse) String() string
type UnimplementedUserLikeItemServiceServer ¶
type UnimplementedUserLikeItemServiceServer struct { }
UnimplementedUserLikeItemServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedUserLikeItemServiceServer) GetItemLikes ¶
func (UnimplementedUserLikeItemServiceServer) GetItemLikes(context.Context, *GetItemLikesRequest) (*GetItemLikesResponse, error)
type UnsafeUserLikeItemServiceServer ¶
type UnsafeUserLikeItemServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUserLikeItemServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserLikeItemServiceServer will result in compilation errors.
type UserLikeItemServiceClient ¶
type UserLikeItemServiceClient interface {
GetItemLikes(ctx context.Context, in *GetItemLikesRequest, opts ...grpc.CallOption) (*GetItemLikesResponse, error)
}
UserLikeItemServiceClient is the client API for UserLikeItemService 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 NewUserLikeItemServiceClient ¶
func NewUserLikeItemServiceClient(cc grpc.ClientConnInterface) UserLikeItemServiceClient
type UserLikeItemServiceServer ¶
type UserLikeItemServiceServer interface {
GetItemLikes(context.Context, *GetItemLikesRequest) (*GetItemLikesResponse, error)
}
UserLikeItemServiceServer is the server API for UserLikeItemService service. All implementations should embed UnimplementedUserLikeItemServiceServer for forward compatibility