pb

package
v0.0.0-...-422268b Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_user_like_item_proto protoreflect.FileDescriptor
View Source
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

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.

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

Jump to

Keyboard shortcuts

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