Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer)
- func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
- type AddCardReply
- type AddCardReq
- func (*AddCardReq) Descriptor() ([]byte, []int)deprecated
- func (x *AddCardReq) GetCardNumber() string
- func (x *AddCardReq) GetCcv() int32
- func (x *AddCardReq) GetExpirationMonth() int32
- func (x *AddCardReq) GetExpirationYear() int32
- func (x *AddCardReq) GetName() string
- func (x *AddCardReq) GetUserId() string
- func (*AddCardReq) ProtoMessage()
- func (x *AddCardReq) ProtoReflect() protoreflect.Message
- func (x *AddCardReq) Reset()
- func (x *AddCardReq) String() string
- type CreateUserReply
- func (*CreateUserReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserReply) GetId() string
- func (x *CreateUserReply) GetUsername() string
- func (*CreateUserReply) ProtoMessage()
- func (x *CreateUserReply) ProtoReflect() protoreflect.Message
- func (x *CreateUserReply) Reset()
- func (x *CreateUserReply) String() string
- type CreateUserReq
- func (*CreateUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserReq) GetEmail() string
- func (x *CreateUserReq) GetPassword() string
- func (x *CreateUserReq) GetUsername() string
- func (*CreateUserReq) ProtoMessage()
- func (x *CreateUserReq) ProtoReflect() protoreflect.Message
- func (x *CreateUserReq) Reset()
- func (x *CreateUserReq) String() string
- type DeleteCardReply
- type DeleteCardReq
- func (*DeleteCardReq) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteCardReq) GetCardId() string
- func (x *DeleteCardReq) GetUserId() string
- func (*DeleteCardReq) ProtoMessage()
- func (x *DeleteCardReq) ProtoReflect() protoreflect.Message
- func (x *DeleteCardReq) Reset()
- func (x *DeleteCardReq) String() string
- type GetUserByUsernameReply
- func (*GetUserByUsernameReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserByUsernameReply) GetId() string
- func (x *GetUserByUsernameReply) GetUsername() string
- func (*GetUserByUsernameReply) ProtoMessage()
- func (x *GetUserByUsernameReply) ProtoReflect() protoreflect.Message
- func (x *GetUserByUsernameReply) Reset()
- func (x *GetUserByUsernameReply) String() string
- type GetUserByUsernameReq
- func (*GetUserByUsernameReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserByUsernameReq) GetUsername() string
- func (*GetUserByUsernameReq) ProtoMessage()
- func (x *GetUserByUsernameReq) ProtoReflect() protoreflect.Message
- func (x *GetUserByUsernameReq) Reset()
- func (x *GetUserByUsernameReq) String() string
- type GetUserReply
- func (*GetUserReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserReply) GetId() string
- func (x *GetUserReply) GetUsername() string
- func (*GetUserReply) ProtoMessage()
- func (x *GetUserReply) ProtoReflect() protoreflect.Message
- func (x *GetUserReply) Reset()
- func (x *GetUserReply) String() string
- type GetUserReq
- type ListCardsReply
- type ListCardsReq
- type SaveUserReply
- type SaveUserReq
- func (*SaveUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *SaveUserReq) GetId() int64
- func (x *SaveUserReq) GetPassword() string
- func (x *SaveUserReq) GetUsername() string
- func (*SaveUserReq) ProtoMessage()
- func (x *SaveUserReq) ProtoReflect() protoreflect.Message
- func (x *SaveUserReq) Reset()
- func (x *SaveUserReq) String() string
- type UnimplementedUserServer
- func (UnimplementedUserServer) AddCard(context.Context, *AddCardReq) (*AddCardReply, error)
- func (UnimplementedUserServer) CreateUser(context.Context, *CreateUserReq) (*CreateUserReply, error)
- func (UnimplementedUserServer) DeleteCard(context.Context, *DeleteCardReq) (*DeleteCardReply, error)
- func (UnimplementedUserServer) GetUser(context.Context, *GetUserReq) (*GetUserReply, error)
- func (UnimplementedUserServer) GetUserByUsername(context.Context, *GetUserByUsernameReq) (*GetUserByUsernameReply, error)
- func (UnimplementedUserServer) ListCards(context.Context, *ListCardsReq) (*ListCardsReply, error)
- func (UnimplementedUserServer) Save(context.Context, *SaveUserReq) (*SaveUserReply, error)
- func (UnimplementedUserServer) VerifyPassword(context.Context, *VerifyPasswordReq) (*VerifyPasswordReply, error)
- type UnsafeUserServer
- type UserClient
- type UserHTTPClient
- type UserHTTPClientImpl
- func (c *UserHTTPClientImpl) AddCard(ctx context.Context, in *AddCardReq, opts ...http.CallOption) (*AddCardReply, error)
- func (c *UserHTTPClientImpl) CreateUser(ctx context.Context, in *CreateUserReq, opts ...http.CallOption) (*CreateUserReply, error)
- func (c *UserHTTPClientImpl) DeleteCard(ctx context.Context, in *DeleteCardReq, opts ...http.CallOption) (*DeleteCardReply, error)
- func (c *UserHTTPClientImpl) GetUser(ctx context.Context, in *GetUserReq, opts ...http.CallOption) (*GetUserReply, error)
- func (c *UserHTTPClientImpl) GetUserByUsername(ctx context.Context, in *GetUserByUsernameReq, opts ...http.CallOption) (*GetUserByUsernameReply, error)
- func (c *UserHTTPClientImpl) ListCards(ctx context.Context, in *ListCardsReq, opts ...http.CallOption) (*ListCardsReply, error)
- func (c *UserHTTPClientImpl) Save(ctx context.Context, in *SaveUserReq, opts ...http.CallOption) (*SaveUserReply, error)
- func (c *UserHTTPClientImpl) VerifyPassword(ctx context.Context, in *VerifyPasswordReq, opts ...http.CallOption) (*VerifyPasswordReply, error)
- type UserHTTPServer
- type UserServer
- type VerifyPasswordReply
- func (*VerifyPasswordReply) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyPasswordReply) GetId() int64
- func (x *VerifyPasswordReply) GetOk() bool
- func (*VerifyPasswordReply) ProtoMessage()
- func (x *VerifyPasswordReply) ProtoReflect() protoreflect.Message
- func (x *VerifyPasswordReply) Reset()
- func (x *VerifyPasswordReply) String() string
- type VerifyPasswordReq
- func (*VerifyPasswordReq) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyPasswordReq) GetPassword() string
- func (x *VerifyPasswordReq) GetUsername() string
- func (*VerifyPasswordReq) ProtoMessage()
- func (x *VerifyPasswordReq) ProtoReflect() protoreflect.Message
- func (x *VerifyPasswordReq) Reset()
- func (x *VerifyPasswordReq) String() string
Constants ¶
const ( User_GetUser_FullMethodName = "/boutiqueshop.User/GetUser" User_GetUserByUsername_FullMethodName = "/boutiqueshop.User/GetUserByUsername" User_Save_FullMethodName = "/boutiqueshop.User/Save" User_CreateUser_FullMethodName = "/boutiqueshop.User/CreateUser" User_VerifyPassword_FullMethodName = "/boutiqueshop.User/VerifyPassword" User_AddCard_FullMethodName = "/boutiqueshop.User/AddCard" User_ListCards_FullMethodName = "/boutiqueshop.User/ListCards" User_DeleteCard_FullMethodName = "/boutiqueshop.User/DeleteCard" )
const OperationUserAddCard = "/boutiqueshop.User/AddCard"
const OperationUserCreateUser = "/boutiqueshop.User/CreateUser"
const OperationUserDeleteCard = "/boutiqueshop.User/DeleteCard"
const OperationUserGetUser = "/boutiqueshop.User/GetUser"
const OperationUserGetUserByUsername = "/boutiqueshop.User/GetUserByUsername"
const OperationUserListCards = "/boutiqueshop.User/ListCards"
const OperationUserSave = "/boutiqueshop.User/Save"
const OperationUserVerifyPassword = "/boutiqueshop.User/VerifyPassword"
Variables ¶
var File_user_user_proto protoreflect.FileDescriptor
var User_ServiceDesc = grpc.ServiceDesc{ ServiceName: "boutiqueshop.User", HandlerType: (*UserServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetUser", Handler: _User_GetUser_Handler, }, { MethodName: "GetUserByUsername", Handler: _User_GetUserByUsername_Handler, }, { MethodName: "Save", Handler: _User_Save_Handler, }, { MethodName: "CreateUser", Handler: _User_CreateUser_Handler, }, { MethodName: "VerifyPassword", Handler: _User_VerifyPassword_Handler, }, { MethodName: "AddCard", Handler: _User_AddCard_Handler, }, { MethodName: "ListCards", Handler: _User_ListCards_Handler, }, { MethodName: "DeleteCard", Handler: _User_DeleteCard_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "user/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 RegisterUserHTTPServer ¶
func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer)
func RegisterUserServer ¶
func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
Types ¶
type AddCardReply ¶
type AddCardReply struct { CardId string `protobuf:"bytes,1,opt,name=card_id,json=cardId,proto3" json:"card_id,omitempty"` // contains filtered or unexported fields }
func (*AddCardReply) Descriptor
deprecated
func (*AddCardReply) Descriptor() ([]byte, []int)
Deprecated: Use AddCardReply.ProtoReflect.Descriptor instead.
func (*AddCardReply) GetCardId ¶
func (x *AddCardReply) GetCardId() string
func (*AddCardReply) ProtoMessage ¶
func (*AddCardReply) ProtoMessage()
func (*AddCardReply) ProtoReflect ¶
func (x *AddCardReply) ProtoReflect() protoreflect.Message
func (*AddCardReply) Reset ¶
func (x *AddCardReply) Reset()
func (*AddCardReply) String ¶
func (x *AddCardReply) String() string
type AddCardReq ¶
type AddCardReq struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` CardNumber string `protobuf:"bytes,2,opt,name=card_number,json=cardNumber,proto3" json:"card_number,omitempty"` ExpirationYear int32 `protobuf:"varint,3,opt,name=expiration_year,json=expirationYear,proto3" json:"expiration_year,omitempty"` ExpirationMonth int32 `protobuf:"varint,4,opt,name=expiration_month,json=expirationMonth,proto3" json:"expiration_month,omitempty"` Ccv int32 `protobuf:"varint,5,opt,name=ccv,proto3" json:"ccv,omitempty"` Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*AddCardReq) Descriptor
deprecated
func (*AddCardReq) Descriptor() ([]byte, []int)
Deprecated: Use AddCardReq.ProtoReflect.Descriptor instead.
func (*AddCardReq) GetCardNumber ¶
func (x *AddCardReq) GetCardNumber() string
func (*AddCardReq) GetCcv ¶
func (x *AddCardReq) GetCcv() int32
func (*AddCardReq) GetExpirationMonth ¶
func (x *AddCardReq) GetExpirationMonth() int32
func (*AddCardReq) GetExpirationYear ¶
func (x *AddCardReq) GetExpirationYear() int32
func (*AddCardReq) GetName ¶
func (x *AddCardReq) GetName() string
func (*AddCardReq) GetUserId ¶
func (x *AddCardReq) GetUserId() string
func (*AddCardReq) ProtoMessage ¶
func (*AddCardReq) ProtoMessage()
func (*AddCardReq) ProtoReflect ¶
func (x *AddCardReq) ProtoReflect() protoreflect.Message
func (*AddCardReq) Reset ¶
func (x *AddCardReq) Reset()
func (*AddCardReq) String ¶
func (x *AddCardReq) String() string
type CreateUserReply ¶
type CreateUserReply 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"` // contains filtered or unexported fields }
func (*CreateUserReply) Descriptor
deprecated
func (*CreateUserReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserReply.ProtoReflect.Descriptor instead.
func (*CreateUserReply) GetId ¶
func (x *CreateUserReply) GetId() string
func (*CreateUserReply) GetUsername ¶
func (x *CreateUserReply) GetUsername() string
func (*CreateUserReply) ProtoMessage ¶
func (*CreateUserReply) ProtoMessage()
func (*CreateUserReply) ProtoReflect ¶
func (x *CreateUserReply) ProtoReflect() protoreflect.Message
func (*CreateUserReply) Reset ¶
func (x *CreateUserReply) Reset()
func (*CreateUserReply) String ¶
func (x *CreateUserReply) String() string
type CreateUserReq ¶
type CreateUserReq 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"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*CreateUserReq) Descriptor
deprecated
func (*CreateUserReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserReq.ProtoReflect.Descriptor instead.
func (*CreateUserReq) GetEmail ¶
func (x *CreateUserReq) GetEmail() string
func (*CreateUserReq) GetPassword ¶
func (x *CreateUserReq) GetPassword() string
func (*CreateUserReq) GetUsername ¶
func (x *CreateUserReq) GetUsername() string
func (*CreateUserReq) ProtoMessage ¶
func (*CreateUserReq) ProtoMessage()
func (*CreateUserReq) ProtoReflect ¶
func (x *CreateUserReq) ProtoReflect() protoreflect.Message
func (*CreateUserReq) Reset ¶
func (x *CreateUserReq) Reset()
func (*CreateUserReq) String ¶
func (x *CreateUserReq) String() string
type DeleteCardReply ¶
type DeleteCardReply struct {
// contains filtered or unexported fields
}
func (*DeleteCardReply) Descriptor
deprecated
func (*DeleteCardReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCardReply.ProtoReflect.Descriptor instead.
func (*DeleteCardReply) ProtoMessage ¶
func (*DeleteCardReply) ProtoMessage()
func (*DeleteCardReply) ProtoReflect ¶
func (x *DeleteCardReply) ProtoReflect() protoreflect.Message
func (*DeleteCardReply) Reset ¶
func (x *DeleteCardReply) Reset()
func (*DeleteCardReply) String ¶
func (x *DeleteCardReply) String() string
type DeleteCardReq ¶
type DeleteCardReq struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` CardId string `protobuf:"bytes,2,opt,name=card_id,json=cardId,proto3" json:"card_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteCardReq) Descriptor
deprecated
func (*DeleteCardReq) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCardReq.ProtoReflect.Descriptor instead.
func (*DeleteCardReq) GetCardId ¶
func (x *DeleteCardReq) GetCardId() string
func (*DeleteCardReq) GetUserId ¶
func (x *DeleteCardReq) GetUserId() string
func (*DeleteCardReq) ProtoMessage ¶
func (*DeleteCardReq) ProtoMessage()
func (*DeleteCardReq) ProtoReflect ¶
func (x *DeleteCardReq) ProtoReflect() protoreflect.Message
func (*DeleteCardReq) Reset ¶
func (x *DeleteCardReq) Reset()
func (*DeleteCardReq) String ¶
func (x *DeleteCardReq) String() string
type GetUserByUsernameReply ¶
type GetUserByUsernameReply 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"` // contains filtered or unexported fields }
func (*GetUserByUsernameReply) Descriptor
deprecated
func (*GetUserByUsernameReply) Descriptor() ([]byte, []int)
Deprecated: Use GetUserByUsernameReply.ProtoReflect.Descriptor instead.
func (*GetUserByUsernameReply) GetId ¶
func (x *GetUserByUsernameReply) GetId() string
func (*GetUserByUsernameReply) GetUsername ¶
func (x *GetUserByUsernameReply) GetUsername() string
func (*GetUserByUsernameReply) ProtoMessage ¶
func (*GetUserByUsernameReply) ProtoMessage()
func (*GetUserByUsernameReply) ProtoReflect ¶
func (x *GetUserByUsernameReply) ProtoReflect() protoreflect.Message
func (*GetUserByUsernameReply) Reset ¶
func (x *GetUserByUsernameReply) Reset()
func (*GetUserByUsernameReply) String ¶
func (x *GetUserByUsernameReply) String() string
type GetUserByUsernameReq ¶
type GetUserByUsernameReq struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*GetUserByUsernameReq) Descriptor
deprecated
func (*GetUserByUsernameReq) Descriptor() ([]byte, []int)
Deprecated: Use GetUserByUsernameReq.ProtoReflect.Descriptor instead.
func (*GetUserByUsernameReq) GetUsername ¶
func (x *GetUserByUsernameReq) GetUsername() string
func (*GetUserByUsernameReq) ProtoMessage ¶
func (*GetUserByUsernameReq) ProtoMessage()
func (*GetUserByUsernameReq) ProtoReflect ¶
func (x *GetUserByUsernameReq) ProtoReflect() protoreflect.Message
func (*GetUserByUsernameReq) Reset ¶
func (x *GetUserByUsernameReq) Reset()
func (*GetUserByUsernameReq) String ¶
func (x *GetUserByUsernameReq) String() string
type GetUserReply ¶
type GetUserReply 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"` // contains filtered or unexported fields }
func (*GetUserReply) Descriptor
deprecated
func (*GetUserReply) Descriptor() ([]byte, []int)
Deprecated: Use GetUserReply.ProtoReflect.Descriptor instead.
func (*GetUserReply) GetId ¶
func (x *GetUserReply) GetId() string
func (*GetUserReply) GetUsername ¶
func (x *GetUserReply) GetUsername() string
func (*GetUserReply) ProtoMessage ¶
func (*GetUserReply) ProtoMessage()
func (*GetUserReply) ProtoReflect ¶
func (x *GetUserReply) ProtoReflect() protoreflect.Message
func (*GetUserReply) Reset ¶
func (x *GetUserReply) Reset()
func (*GetUserReply) String ¶
func (x *GetUserReply) String() string
type GetUserReq ¶
type GetUserReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetUserReq) Descriptor
deprecated
func (*GetUserReq) Descriptor() ([]byte, []int)
Deprecated: Use GetUserReq.ProtoReflect.Descriptor instead.
func (*GetUserReq) GetId ¶
func (x *GetUserReq) GetId() string
func (*GetUserReq) ProtoMessage ¶
func (*GetUserReq) ProtoMessage()
func (*GetUserReq) ProtoReflect ¶
func (x *GetUserReq) ProtoReflect() protoreflect.Message
func (*GetUserReq) Reset ¶
func (x *GetUserReq) Reset()
func (*GetUserReq) String ¶
func (x *GetUserReq) String() string
type ListCardsReply ¶
type ListCardsReply struct { Cards []*shared.CreditCardInfo `protobuf:"bytes,1,rep,name=cards,proto3" json:"cards,omitempty"` // contains filtered or unexported fields }
func (*ListCardsReply) Descriptor
deprecated
func (*ListCardsReply) Descriptor() ([]byte, []int)
Deprecated: Use ListCardsReply.ProtoReflect.Descriptor instead.
func (*ListCardsReply) GetCards ¶
func (x *ListCardsReply) GetCards() []*shared.CreditCardInfo
func (*ListCardsReply) ProtoMessage ¶
func (*ListCardsReply) ProtoMessage()
func (*ListCardsReply) ProtoReflect ¶
func (x *ListCardsReply) ProtoReflect() protoreflect.Message
func (*ListCardsReply) Reset ¶
func (x *ListCardsReply) Reset()
func (*ListCardsReply) String ¶
func (x *ListCardsReply) String() string
type ListCardsReq ¶
type ListCardsReq struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*ListCardsReq) Descriptor
deprecated
func (*ListCardsReq) Descriptor() ([]byte, []int)
Deprecated: Use ListCardsReq.ProtoReflect.Descriptor instead.
func (*ListCardsReq) GetUserId ¶
func (x *ListCardsReq) GetUserId() string
func (*ListCardsReq) ProtoMessage ¶
func (*ListCardsReq) ProtoMessage()
func (*ListCardsReq) ProtoReflect ¶
func (x *ListCardsReq) ProtoReflect() protoreflect.Message
func (*ListCardsReq) Reset ¶
func (x *ListCardsReq) Reset()
func (*ListCardsReq) String ¶
func (x *ListCardsReq) String() string
type SaveUserReply ¶
type SaveUserReply struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*SaveUserReply) Descriptor
deprecated
func (*SaveUserReply) Descriptor() ([]byte, []int)
Deprecated: Use SaveUserReply.ProtoReflect.Descriptor instead.
func (*SaveUserReply) GetId ¶
func (x *SaveUserReply) GetId() int64
func (*SaveUserReply) ProtoMessage ¶
func (*SaveUserReply) ProtoMessage()
func (*SaveUserReply) ProtoReflect ¶
func (x *SaveUserReply) ProtoReflect() protoreflect.Message
func (*SaveUserReply) Reset ¶
func (x *SaveUserReply) Reset()
func (*SaveUserReply) String ¶
func (x *SaveUserReply) String() string
type SaveUserReq ¶
type SaveUserReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*SaveUserReq) Descriptor
deprecated
func (*SaveUserReq) Descriptor() ([]byte, []int)
Deprecated: Use SaveUserReq.ProtoReflect.Descriptor instead.
func (*SaveUserReq) GetId ¶
func (x *SaveUserReq) GetId() int64
func (*SaveUserReq) GetPassword ¶
func (x *SaveUserReq) GetPassword() string
func (*SaveUserReq) GetUsername ¶
func (x *SaveUserReq) GetUsername() string
func (*SaveUserReq) ProtoMessage ¶
func (*SaveUserReq) ProtoMessage()
func (*SaveUserReq) ProtoReflect ¶
func (x *SaveUserReq) ProtoReflect() protoreflect.Message
func (*SaveUserReq) Reset ¶
func (x *SaveUserReq) Reset()
func (*SaveUserReq) String ¶
func (x *SaveUserReq) String() string
type UnimplementedUserServer ¶
type UnimplementedUserServer struct { }
UnimplementedUserServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServer) AddCard ¶
func (UnimplementedUserServer) AddCard(context.Context, *AddCardReq) (*AddCardReply, error)
func (UnimplementedUserServer) CreateUser ¶
func (UnimplementedUserServer) CreateUser(context.Context, *CreateUserReq) (*CreateUserReply, error)
func (UnimplementedUserServer) DeleteCard ¶
func (UnimplementedUserServer) DeleteCard(context.Context, *DeleteCardReq) (*DeleteCardReply, error)
func (UnimplementedUserServer) GetUser ¶
func (UnimplementedUserServer) GetUser(context.Context, *GetUserReq) (*GetUserReply, error)
func (UnimplementedUserServer) GetUserByUsername ¶
func (UnimplementedUserServer) GetUserByUsername(context.Context, *GetUserByUsernameReq) (*GetUserByUsernameReply, error)
func (UnimplementedUserServer) ListCards ¶
func (UnimplementedUserServer) ListCards(context.Context, *ListCardsReq) (*ListCardsReply, error)
func (UnimplementedUserServer) Save ¶
func (UnimplementedUserServer) Save(context.Context, *SaveUserReq) (*SaveUserReply, error)
func (UnimplementedUserServer) VerifyPassword ¶
func (UnimplementedUserServer) VerifyPassword(context.Context, *VerifyPasswordReq) (*VerifyPasswordReply, 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 UserClient ¶
type UserClient interface { GetUser(ctx context.Context, in *GetUserReq, opts ...grpc.CallOption) (*GetUserReply, error) GetUserByUsername(ctx context.Context, in *GetUserByUsernameReq, opts ...grpc.CallOption) (*GetUserByUsernameReply, error) Save(ctx context.Context, in *SaveUserReq, opts ...grpc.CallOption) (*SaveUserReply, error) CreateUser(ctx context.Context, in *CreateUserReq, opts ...grpc.CallOption) (*CreateUserReply, error) VerifyPassword(ctx context.Context, in *VerifyPasswordReq, opts ...grpc.CallOption) (*VerifyPasswordReply, error) AddCard(ctx context.Context, in *AddCardReq, opts ...grpc.CallOption) (*AddCardReply, error) ListCards(ctx context.Context, in *ListCardsReq, opts ...grpc.CallOption) (*ListCardsReply, error) DeleteCard(ctx context.Context, in *DeleteCardReq, opts ...grpc.CallOption) (*DeleteCardReply, 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 UserHTTPClient ¶
type UserHTTPClient interface { AddCard(ctx context.Context, req *AddCardReq, opts ...http.CallOption) (rsp *AddCardReply, err error) CreateUser(ctx context.Context, req *CreateUserReq, opts ...http.CallOption) (rsp *CreateUserReply, err error) DeleteCard(ctx context.Context, req *DeleteCardReq, opts ...http.CallOption) (rsp *DeleteCardReply, err error) GetUser(ctx context.Context, req *GetUserReq, opts ...http.CallOption) (rsp *GetUserReply, err error) GetUserByUsername(ctx context.Context, req *GetUserByUsernameReq, opts ...http.CallOption) (rsp *GetUserByUsernameReply, err error) ListCards(ctx context.Context, req *ListCardsReq, opts ...http.CallOption) (rsp *ListCardsReply, err error) Save(ctx context.Context, req *SaveUserReq, opts ...http.CallOption) (rsp *SaveUserReply, err error) VerifyPassword(ctx context.Context, req *VerifyPasswordReq, opts ...http.CallOption) (rsp *VerifyPasswordReply, err error) }
func NewUserHTTPClient ¶
func NewUserHTTPClient(client *http.Client) UserHTTPClient
type UserHTTPClientImpl ¶
type UserHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*UserHTTPClientImpl) AddCard ¶
func (c *UserHTTPClientImpl) AddCard(ctx context.Context, in *AddCardReq, opts ...http.CallOption) (*AddCardReply, error)
func (*UserHTTPClientImpl) CreateUser ¶
func (c *UserHTTPClientImpl) CreateUser(ctx context.Context, in *CreateUserReq, opts ...http.CallOption) (*CreateUserReply, error)
func (*UserHTTPClientImpl) DeleteCard ¶
func (c *UserHTTPClientImpl) DeleteCard(ctx context.Context, in *DeleteCardReq, opts ...http.CallOption) (*DeleteCardReply, error)
func (*UserHTTPClientImpl) GetUser ¶
func (c *UserHTTPClientImpl) GetUser(ctx context.Context, in *GetUserReq, opts ...http.CallOption) (*GetUserReply, error)
func (*UserHTTPClientImpl) GetUserByUsername ¶
func (c *UserHTTPClientImpl) GetUserByUsername(ctx context.Context, in *GetUserByUsernameReq, opts ...http.CallOption) (*GetUserByUsernameReply, error)
func (*UserHTTPClientImpl) ListCards ¶
func (c *UserHTTPClientImpl) ListCards(ctx context.Context, in *ListCardsReq, opts ...http.CallOption) (*ListCardsReply, error)
func (*UserHTTPClientImpl) Save ¶
func (c *UserHTTPClientImpl) Save(ctx context.Context, in *SaveUserReq, opts ...http.CallOption) (*SaveUserReply, error)
func (*UserHTTPClientImpl) VerifyPassword ¶
func (c *UserHTTPClientImpl) VerifyPassword(ctx context.Context, in *VerifyPasswordReq, opts ...http.CallOption) (*VerifyPasswordReply, error)
type UserHTTPServer ¶
type UserHTTPServer interface { AddCard(context.Context, *AddCardReq) (*AddCardReply, error) CreateUser(context.Context, *CreateUserReq) (*CreateUserReply, error) DeleteCard(context.Context, *DeleteCardReq) (*DeleteCardReply, error) GetUser(context.Context, *GetUserReq) (*GetUserReply, error) GetUserByUsername(context.Context, *GetUserByUsernameReq) (*GetUserByUsernameReply, error) ListCards(context.Context, *ListCardsReq) (*ListCardsReply, error) Save(context.Context, *SaveUserReq) (*SaveUserReply, error) VerifyPassword(context.Context, *VerifyPasswordReq) (*VerifyPasswordReply, error) }
type UserServer ¶
type UserServer interface { GetUser(context.Context, *GetUserReq) (*GetUserReply, error) GetUserByUsername(context.Context, *GetUserByUsernameReq) (*GetUserByUsernameReply, error) Save(context.Context, *SaveUserReq) (*SaveUserReply, error) CreateUser(context.Context, *CreateUserReq) (*CreateUserReply, error) VerifyPassword(context.Context, *VerifyPasswordReq) (*VerifyPasswordReply, error) AddCard(context.Context, *AddCardReq) (*AddCardReply, error) ListCards(context.Context, *ListCardsReq) (*ListCardsReply, error) DeleteCard(context.Context, *DeleteCardReq) (*DeleteCardReply, error) // contains filtered or unexported methods }
UserServer is the server API for User service. All implementations must embed UnimplementedUserServer for forward compatibility
type VerifyPasswordReply ¶
type VerifyPasswordReply struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*VerifyPasswordReply) Descriptor
deprecated
func (*VerifyPasswordReply) Descriptor() ([]byte, []int)
Deprecated: Use VerifyPasswordReply.ProtoReflect.Descriptor instead.
func (*VerifyPasswordReply) GetId ¶
func (x *VerifyPasswordReply) GetId() int64
func (*VerifyPasswordReply) GetOk ¶
func (x *VerifyPasswordReply) GetOk() bool
func (*VerifyPasswordReply) ProtoMessage ¶
func (*VerifyPasswordReply) ProtoMessage()
func (*VerifyPasswordReply) ProtoReflect ¶
func (x *VerifyPasswordReply) ProtoReflect() protoreflect.Message
func (*VerifyPasswordReply) Reset ¶
func (x *VerifyPasswordReply) Reset()
func (*VerifyPasswordReply) String ¶
func (x *VerifyPasswordReply) String() string
type VerifyPasswordReq ¶
type VerifyPasswordReq 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 (*VerifyPasswordReq) Descriptor
deprecated
func (*VerifyPasswordReq) Descriptor() ([]byte, []int)
Deprecated: Use VerifyPasswordReq.ProtoReflect.Descriptor instead.
func (*VerifyPasswordReq) GetPassword ¶
func (x *VerifyPasswordReq) GetPassword() string
func (*VerifyPasswordReq) GetUsername ¶
func (x *VerifyPasswordReq) GetUsername() string
func (*VerifyPasswordReq) ProtoMessage ¶
func (*VerifyPasswordReq) ProtoMessage()
func (*VerifyPasswordReq) ProtoReflect ¶
func (x *VerifyPasswordReq) ProtoReflect() protoreflect.Message
func (*VerifyPasswordReq) Reset ¶
func (x *VerifyPasswordReq) Reset()
func (*VerifyPasswordReq) String ¶
func (x *VerifyPasswordReq) String() string