Documentation ¶
Index ¶
- Variables
- func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
- type AddToCartRequest
- func (*AddToCartRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddToCartRequest) GetItemId() string
- func (x *AddToCartRequest) GetQuntity() uint32
- func (x *AddToCartRequest) GetUserId() string
- func (*AddToCartRequest) ProtoMessage()
- func (x *AddToCartRequest) ProtoReflect() protoreflect.Message
- func (x *AddToCartRequest) Reset()
- func (x *AddToCartRequest) String() string
- type Address
- type CartItem
- func (*CartItem) Descriptor() ([]byte, []int)deprecated
- func (x *CartItem) GetId() string
- func (x *CartItem) GetLink() string
- func (x *CartItem) GetName() string
- func (x *CartItem) GetPoster() string
- func (x *CartItem) GetPrice() float32
- func (*CartItem) ProtoMessage()
- func (x *CartItem) ProtoReflect() protoreflect.Message
- func (x *CartItem) Reset()
- func (x *CartItem) String() string
- type CartResponse
- type ChangePasswordRequest
- func (*ChangePasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ChangePasswordRequest) GetId() string
- func (x *ChangePasswordRequest) GetNewPassword() string
- func (x *ChangePasswordRequest) GetOldPassword() string
- func (*ChangePasswordRequest) ProtoMessage()
- func (x *ChangePasswordRequest) ProtoReflect() protoreflect.Message
- func (x *ChangePasswordRequest) Reset()
- func (x *ChangePasswordRequest) String() string
- type DeleteFromCartRequest
- func (*DeleteFromCartRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteFromCartRequest) GetItemId() string
- func (x *DeleteFromCartRequest) GetUserId() string
- func (*DeleteFromCartRequest) ProtoMessage()
- func (x *DeleteFromCartRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteFromCartRequest) Reset()
- func (x *DeleteFromCartRequest) String() string
- type EditUserRequest
- func (*EditUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EditUserRequest) GetAddress() *Address
- func (x *EditUserRequest) GetEmail() string
- func (x *EditUserRequest) GetId() string
- func (*EditUserRequest) ProtoMessage()
- func (x *EditUserRequest) ProtoReflect() protoreflect.Message
- func (x *EditUserRequest) Reset()
- func (x *EditUserRequest) String() string
- type GetUserResponse
- func (*GetUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserResponse) GetAddress() *Address
- func (x *GetUserResponse) GetEmail() string
- func (x *GetUserResponse) GetRole() uint32
- func (x *GetUserResponse) GetStatus() bool
- func (x *GetUserResponse) GetUsername() string
- func (*GetUserResponse) ProtoMessage()
- func (x *GetUserResponse) ProtoReflect() protoreflect.Message
- func (x *GetUserResponse) Reset()
- func (x *GetUserResponse) String() string
- type SigninRequest
- func (*SigninRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SigninRequest) GetPassword() string
- func (x *SigninRequest) GetUsername() string
- func (*SigninRequest) ProtoMessage()
- func (x *SigninRequest) ProtoReflect() protoreflect.Message
- func (x *SigninRequest) Reset()
- func (x *SigninRequest) String() string
- type SignupRequest
- func (*SignupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignupRequest) GetEmail() string
- func (x *SignupRequest) GetPassword() string
- func (x *SignupRequest) GetRole() uint32
- func (x *SignupRequest) GetUsername() string
- func (*SignupRequest) ProtoMessage()
- func (x *SignupRequest) ProtoReflect() protoreflect.Message
- func (x *SignupRequest) Reset()
- func (x *SignupRequest) String() string
- type UnimplementedUserServer
- func (UnimplementedUserServer) AddToCart(context.Context, *AddToCartRequest) (*common.BoolMessage, error)
- func (UnimplementedUserServer) Cart(context.Context, *common.StringMessage) (*CartResponse, error)
- func (UnimplementedUserServer) ChangePassword(context.Context, *ChangePasswordRequest) (*common.BoolMessage, error)
- func (UnimplementedUserServer) DeleteFromCart(context.Context, *DeleteFromCartRequest) (*common.BoolMessage, error)
- func (UnimplementedUserServer) DeleteUser(context.Context, *common.StringMessage) (*common.BoolMessage, error)
- func (UnimplementedUserServer) EditUser(context.Context, *EditUserRequest) (*common.BoolMessage, error)
- func (UnimplementedUserServer) GetUser(context.Context, *common.StringMessage) (*GetUserResponse, error)
- func (UnimplementedUserServer) Signin(context.Context, *SigninRequest) (*common.StringMessage, error)
- func (UnimplementedUserServer) Signup(context.Context, *SignupRequest) (*common.StringMessage, error)
- func (UnimplementedUserServer) UpdateCart(context.Context, *UpdateCartRequest) (*common.BoolMessage, error)
- func (UnimplementedUserServer) UserList(*common.Empty, User_UserListServer) error
- type UnsafeUserServer
- type UpdateCartRequest
- func (*UpdateCartRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCartRequest) GetItemId() string
- func (x *UpdateCartRequest) GetNewQuantity() uint32
- func (x *UpdateCartRequest) GetUserId() string
- func (*UpdateCartRequest) ProtoMessage()
- func (x *UpdateCartRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateCartRequest) Reset()
- func (x *UpdateCartRequest) String() string
- type UserClient
- type UserListResponse
- func (*UserListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserListResponse) GetEmail() string
- func (x *UserListResponse) GetId() string
- func (x *UserListResponse) GetRole() uint32
- func (x *UserListResponse) GetStatus() bool
- func (x *UserListResponse) GetUsername() string
- func (*UserListResponse) ProtoMessage()
- func (x *UserListResponse) ProtoReflect() protoreflect.Message
- func (x *UserListResponse) Reset()
- func (x *UserListResponse) String() string
- type UserServer
- type User_UserListClient
- type User_UserListServer
Constants ¶
This section is empty.
Variables ¶
var File_user_proto protoreflect.FileDescriptor
var User_ServiceDesc = grpc.ServiceDesc{ ServiceName: "shop.User", HandlerType: (*UserServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Signin", Handler: _User_Signin_Handler, }, { MethodName: "Signup", Handler: _User_Signup_Handler, }, { MethodName: "GetUser", Handler: _User_GetUser_Handler, }, { MethodName: "DeleteUser", Handler: _User_DeleteUser_Handler, }, { MethodName: "EditUser", Handler: _User_EditUser_Handler, }, { MethodName: "ChangePassword", Handler: _User_ChangePassword_Handler, }, { MethodName: "AddToCart", Handler: _User_AddToCart_Handler, }, { MethodName: "DeleteFromCart", Handler: _User_DeleteFromCart_Handler, }, { MethodName: "UpdateCart", Handler: _User_UpdateCart_Handler, }, { MethodName: "Cart", Handler: _User_Cart_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "UserList", Handler: _User_UserList_Handler, ServerStreams: true, }, }, Metadata: "user.proto", }
User_ServiceDesc is the grpc.ServiceDesc for User service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUserServer ¶
func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
Types ¶
type AddToCartRequest ¶
type AddToCartRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` ItemId string `protobuf:"bytes,2,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"` Quntity uint32 `protobuf:"varint,3,opt,name=quntity,proto3" json:"quntity,omitempty"` // contains filtered or unexported fields }
func (*AddToCartRequest) Descriptor
deprecated
func (*AddToCartRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddToCartRequest.ProtoReflect.Descriptor instead.
func (*AddToCartRequest) GetItemId ¶
func (x *AddToCartRequest) GetItemId() string
func (*AddToCartRequest) GetQuntity ¶
func (x *AddToCartRequest) GetQuntity() uint32
func (*AddToCartRequest) GetUserId ¶
func (x *AddToCartRequest) GetUserId() string
func (*AddToCartRequest) ProtoMessage ¶
func (*AddToCartRequest) ProtoMessage()
func (*AddToCartRequest) ProtoReflect ¶
func (x *AddToCartRequest) ProtoReflect() protoreflect.Message
func (*AddToCartRequest) Reset ¶
func (x *AddToCartRequest) Reset()
func (*AddToCartRequest) String ¶
func (x *AddToCartRequest) String() string
type Address ¶
type Address struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"` // contains filtered or unexported fields }
func (*Address) Descriptor
deprecated
func (*Address) GetAddress ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) ProtoReflect ¶
func (x *Address) ProtoReflect() protoreflect.Message
type CartItem ¶
type CartItem struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Link string `protobuf:"bytes,3,opt,name=link,proto3" json:"link,omitempty"` Poster string `protobuf:"bytes,4,opt,name=poster,proto3" json:"poster,omitempty"` Price float32 `protobuf:"fixed32,5,opt,name=price,proto3" json:"price,omitempty"` // contains filtered or unexported fields }
func (*CartItem) Descriptor
deprecated
func (*CartItem) ProtoMessage ¶
func (*CartItem) ProtoMessage()
func (*CartItem) ProtoReflect ¶
func (x *CartItem) ProtoReflect() protoreflect.Message
type CartResponse ¶
type CartResponse struct { Item []*CartItem `protobuf:"bytes,1,rep,name=item,proto3" json:"item,omitempty"` // contains filtered or unexported fields }
func (*CartResponse) Descriptor
deprecated
func (*CartResponse) Descriptor() ([]byte, []int)
Deprecated: Use CartResponse.ProtoReflect.Descriptor instead.
func (*CartResponse) GetItem ¶
func (x *CartResponse) GetItem() []*CartItem
func (*CartResponse) ProtoMessage ¶
func (*CartResponse) ProtoMessage()
func (*CartResponse) ProtoReflect ¶
func (x *CartResponse) ProtoReflect() protoreflect.Message
func (*CartResponse) Reset ¶
func (x *CartResponse) Reset()
func (*CartResponse) String ¶
func (x *CartResponse) String() string
type ChangePasswordRequest ¶
type ChangePasswordRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` OldPassword string `protobuf:"bytes,2,opt,name=oldPassword,proto3" json:"oldPassword,omitempty"` NewPassword string `protobuf:"bytes,3,opt,name=newPassword,proto3" json:"newPassword,omitempty"` // contains filtered or unexported fields }
func (*ChangePasswordRequest) Descriptor
deprecated
func (*ChangePasswordRequest) Descriptor() ([]byte, []int)
Deprecated: Use ChangePasswordRequest.ProtoReflect.Descriptor instead.
func (*ChangePasswordRequest) GetId ¶
func (x *ChangePasswordRequest) GetId() string
func (*ChangePasswordRequest) GetNewPassword ¶
func (x *ChangePasswordRequest) GetNewPassword() string
func (*ChangePasswordRequest) GetOldPassword ¶
func (x *ChangePasswordRequest) GetOldPassword() string
func (*ChangePasswordRequest) ProtoMessage ¶
func (*ChangePasswordRequest) ProtoMessage()
func (*ChangePasswordRequest) ProtoReflect ¶
func (x *ChangePasswordRequest) ProtoReflect() protoreflect.Message
func (*ChangePasswordRequest) Reset ¶
func (x *ChangePasswordRequest) Reset()
func (*ChangePasswordRequest) String ¶
func (x *ChangePasswordRequest) String() string
type DeleteFromCartRequest ¶
type DeleteFromCartRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` ItemId string `protobuf:"bytes,2,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteFromCartRequest) Descriptor
deprecated
func (*DeleteFromCartRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteFromCartRequest.ProtoReflect.Descriptor instead.
func (*DeleteFromCartRequest) GetItemId ¶
func (x *DeleteFromCartRequest) GetItemId() string
func (*DeleteFromCartRequest) GetUserId ¶
func (x *DeleteFromCartRequest) GetUserId() string
func (*DeleteFromCartRequest) ProtoMessage ¶
func (*DeleteFromCartRequest) ProtoMessage()
func (*DeleteFromCartRequest) ProtoReflect ¶
func (x *DeleteFromCartRequest) ProtoReflect() protoreflect.Message
func (*DeleteFromCartRequest) Reset ¶
func (x *DeleteFromCartRequest) Reset()
func (*DeleteFromCartRequest) String ¶
func (x *DeleteFromCartRequest) String() string
type EditUserRequest ¶
type EditUserRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Address *Address `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*EditUserRequest) Descriptor
deprecated
func (*EditUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use EditUserRequest.ProtoReflect.Descriptor instead.
func (*EditUserRequest) GetAddress ¶
func (x *EditUserRequest) GetAddress() *Address
func (*EditUserRequest) GetEmail ¶
func (x *EditUserRequest) GetEmail() string
func (*EditUserRequest) GetId ¶
func (x *EditUserRequest) GetId() string
func (*EditUserRequest) ProtoMessage ¶
func (*EditUserRequest) ProtoMessage()
func (*EditUserRequest) ProtoReflect ¶
func (x *EditUserRequest) ProtoReflect() protoreflect.Message
func (*EditUserRequest) Reset ¶
func (x *EditUserRequest) Reset()
func (*EditUserRequest) String ¶
func (x *EditUserRequest) String() string
type GetUserResponse ¶
type GetUserResponse struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Role uint32 `protobuf:"varint,3,opt,name=role,proto3" json:"role,omitempty"` Status bool `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"` Address *Address `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*GetUserResponse) Descriptor
deprecated
func (*GetUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.
func (*GetUserResponse) GetAddress ¶
func (x *GetUserResponse) GetAddress() *Address
func (*GetUserResponse) GetEmail ¶
func (x *GetUserResponse) GetEmail() string
func (*GetUserResponse) GetRole ¶
func (x *GetUserResponse) GetRole() uint32
func (*GetUserResponse) GetStatus ¶
func (x *GetUserResponse) GetStatus() bool
func (*GetUserResponse) GetUsername ¶
func (x *GetUserResponse) GetUsername() string
func (*GetUserResponse) ProtoMessage ¶
func (*GetUserResponse) ProtoMessage()
func (*GetUserResponse) ProtoReflect ¶
func (x *GetUserResponse) ProtoReflect() protoreflect.Message
func (*GetUserResponse) Reset ¶
func (x *GetUserResponse) Reset()
func (*GetUserResponse) String ¶
func (x *GetUserResponse) String() string
type SigninRequest ¶
type SigninRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*SigninRequest) Descriptor
deprecated
func (*SigninRequest) Descriptor() ([]byte, []int)
Deprecated: Use SigninRequest.ProtoReflect.Descriptor instead.
func (*SigninRequest) GetPassword ¶
func (x *SigninRequest) GetPassword() string
func (*SigninRequest) GetUsername ¶
func (x *SigninRequest) GetUsername() string
func (*SigninRequest) ProtoMessage ¶
func (*SigninRequest) ProtoMessage()
func (*SigninRequest) ProtoReflect ¶
func (x *SigninRequest) ProtoReflect() protoreflect.Message
func (*SigninRequest) Reset ¶
func (x *SigninRequest) Reset()
func (*SigninRequest) String ¶
func (x *SigninRequest) String() string
type SignupRequest ¶
type SignupRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` Role uint32 `protobuf:"varint,4,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*SignupRequest) Descriptor
deprecated
func (*SignupRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignupRequest.ProtoReflect.Descriptor instead.
func (*SignupRequest) GetEmail ¶
func (x *SignupRequest) GetEmail() string
func (*SignupRequest) GetPassword ¶
func (x *SignupRequest) GetPassword() string
func (*SignupRequest) GetRole ¶
func (x *SignupRequest) GetRole() uint32
func (*SignupRequest) GetUsername ¶
func (x *SignupRequest) GetUsername() string
func (*SignupRequest) ProtoMessage ¶
func (*SignupRequest) ProtoMessage()
func (*SignupRequest) ProtoReflect ¶
func (x *SignupRequest) ProtoReflect() protoreflect.Message
func (*SignupRequest) Reset ¶
func (x *SignupRequest) Reset()
func (*SignupRequest) String ¶
func (x *SignupRequest) String() string
type UnimplementedUserServer ¶
type UnimplementedUserServer struct { }
UnimplementedUserServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServer) AddToCart ¶
func (UnimplementedUserServer) AddToCart(context.Context, *AddToCartRequest) (*common.BoolMessage, error)
func (UnimplementedUserServer) Cart ¶
func (UnimplementedUserServer) Cart(context.Context, *common.StringMessage) (*CartResponse, error)
func (UnimplementedUserServer) ChangePassword ¶
func (UnimplementedUserServer) ChangePassword(context.Context, *ChangePasswordRequest) (*common.BoolMessage, error)
func (UnimplementedUserServer) DeleteFromCart ¶
func (UnimplementedUserServer) DeleteFromCart(context.Context, *DeleteFromCartRequest) (*common.BoolMessage, error)
func (UnimplementedUserServer) DeleteUser ¶
func (UnimplementedUserServer) DeleteUser(context.Context, *common.StringMessage) (*common.BoolMessage, error)
func (UnimplementedUserServer) EditUser ¶
func (UnimplementedUserServer) EditUser(context.Context, *EditUserRequest) (*common.BoolMessage, error)
func (UnimplementedUserServer) GetUser ¶
func (UnimplementedUserServer) GetUser(context.Context, *common.StringMessage) (*GetUserResponse, error)
func (UnimplementedUserServer) Signin ¶
func (UnimplementedUserServer) Signin(context.Context, *SigninRequest) (*common.StringMessage, error)
func (UnimplementedUserServer) Signup ¶
func (UnimplementedUserServer) Signup(context.Context, *SignupRequest) (*common.StringMessage, error)
func (UnimplementedUserServer) UpdateCart ¶
func (UnimplementedUserServer) UpdateCart(context.Context, *UpdateCartRequest) (*common.BoolMessage, error)
func (UnimplementedUserServer) UserList ¶
func (UnimplementedUserServer) UserList(*common.Empty, User_UserListServer) error
type UnsafeUserServer ¶
type UnsafeUserServer interface {
// contains filtered or unexported methods
}
UnsafeUserServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServer will result in compilation errors.
type UpdateCartRequest ¶
type UpdateCartRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` ItemId string `protobuf:"bytes,2,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"` NewQuantity uint32 `protobuf:"varint,3,opt,name=new_quantity,json=newQuantity,proto3" json:"new_quantity,omitempty"` // contains filtered or unexported fields }
func (*UpdateCartRequest) Descriptor
deprecated
func (*UpdateCartRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCartRequest.ProtoReflect.Descriptor instead.
func (*UpdateCartRequest) GetItemId ¶
func (x *UpdateCartRequest) GetItemId() string
func (*UpdateCartRequest) GetNewQuantity ¶
func (x *UpdateCartRequest) GetNewQuantity() uint32
func (*UpdateCartRequest) GetUserId ¶
func (x *UpdateCartRequest) GetUserId() string
func (*UpdateCartRequest) ProtoMessage ¶
func (*UpdateCartRequest) ProtoMessage()
func (*UpdateCartRequest) ProtoReflect ¶
func (x *UpdateCartRequest) ProtoReflect() protoreflect.Message
func (*UpdateCartRequest) Reset ¶
func (x *UpdateCartRequest) Reset()
func (*UpdateCartRequest) String ¶
func (x *UpdateCartRequest) String() string
type UserClient ¶
type UserClient interface { Signin(ctx context.Context, in *SigninRequest, opts ...grpc.CallOption) (*common.StringMessage, error) Signup(ctx context.Context, in *SignupRequest, opts ...grpc.CallOption) (*common.StringMessage, error) UserList(ctx context.Context, in *common.Empty, opts ...grpc.CallOption) (User_UserListClient, error) GetUser(ctx context.Context, in *common.StringMessage, opts ...grpc.CallOption) (*GetUserResponse, error) DeleteUser(ctx context.Context, in *common.StringMessage, opts ...grpc.CallOption) (*common.BoolMessage, error) EditUser(ctx context.Context, in *EditUserRequest, opts ...grpc.CallOption) (*common.BoolMessage, error) ChangePassword(ctx context.Context, in *ChangePasswordRequest, opts ...grpc.CallOption) (*common.BoolMessage, error) AddToCart(ctx context.Context, in *AddToCartRequest, opts ...grpc.CallOption) (*common.BoolMessage, error) DeleteFromCart(ctx context.Context, in *DeleteFromCartRequest, opts ...grpc.CallOption) (*common.BoolMessage, error) UpdateCart(ctx context.Context, in *UpdateCartRequest, opts ...grpc.CallOption) (*common.BoolMessage, error) Cart(ctx context.Context, in *common.StringMessage, opts ...grpc.CallOption) (*CartResponse, error) }
UserClient is the client API for User 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 NewUserClient ¶
func NewUserClient(cc grpc.ClientConnInterface) UserClient
type UserListResponse ¶
type UserListResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` Role uint32 `protobuf:"varint,4,opt,name=role,proto3" json:"role,omitempty"` Status bool `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*UserListResponse) Descriptor
deprecated
func (*UserListResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserListResponse.ProtoReflect.Descriptor instead.
func (*UserListResponse) GetEmail ¶
func (x *UserListResponse) GetEmail() string
func (*UserListResponse) GetId ¶
func (x *UserListResponse) GetId() string
func (*UserListResponse) GetRole ¶
func (x *UserListResponse) GetRole() uint32
func (*UserListResponse) GetStatus ¶
func (x *UserListResponse) GetStatus() bool
func (*UserListResponse) GetUsername ¶
func (x *UserListResponse) GetUsername() string
func (*UserListResponse) ProtoMessage ¶
func (*UserListResponse) ProtoMessage()
func (*UserListResponse) ProtoReflect ¶
func (x *UserListResponse) ProtoReflect() protoreflect.Message
func (*UserListResponse) Reset ¶
func (x *UserListResponse) Reset()
func (*UserListResponse) String ¶
func (x *UserListResponse) String() string
type UserServer ¶
type UserServer interface { Signin(context.Context, *SigninRequest) (*common.StringMessage, error) Signup(context.Context, *SignupRequest) (*common.StringMessage, error) UserList(*common.Empty, User_UserListServer) error GetUser(context.Context, *common.StringMessage) (*GetUserResponse, error) DeleteUser(context.Context, *common.StringMessage) (*common.BoolMessage, error) EditUser(context.Context, *EditUserRequest) (*common.BoolMessage, error) ChangePassword(context.Context, *ChangePasswordRequest) (*common.BoolMessage, error) AddToCart(context.Context, *AddToCartRequest) (*common.BoolMessage, error) DeleteFromCart(context.Context, *DeleteFromCartRequest) (*common.BoolMessage, error) UpdateCart(context.Context, *UpdateCartRequest) (*common.BoolMessage, error) Cart(context.Context, *common.StringMessage) (*CartResponse, error) // contains filtered or unexported methods }
UserServer is the server API for User service. All implementations must embed UnimplementedUserServer for forward compatibility
type User_UserListClient ¶
type User_UserListClient interface { Recv() (*UserListResponse, error) grpc.ClientStream }
type User_UserListServer ¶
type User_UserListServer interface { Send(*UserListResponse) error grpc.ServerStream }