Documentation ¶
Index ¶
- Variables
- func ErrorLoginFailed(format string, args ...interface{}) *errors.Error
- func ErrorRegisterFailed(format string, args ...interface{}) *errors.Error
- func ErrorUnknownError(format string, args ...interface{}) *errors.Error
- func ErrorUserNotFound(format string, args ...interface{}) *errors.Error
- func IsLoginFailed(err error) bool
- func IsRegisterFailed(err error) bool
- func IsUnknownError(err error) bool
- func IsUserNotFound(err error) bool
- func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer)
- func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
- type CreateAddressReply
- func (*CreateAddressReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAddressReply) GetAddress() string
- func (x *CreateAddressReply) GetId() int64
- func (x *CreateAddressReply) GetMobile() string
- func (x *CreateAddressReply) GetName() string
- func (x *CreateAddressReply) GetPostCode() string
- func (*CreateAddressReply) ProtoMessage()
- func (x *CreateAddressReply) ProtoReflect() protoreflect.Message
- func (x *CreateAddressReply) Reset()
- func (x *CreateAddressReply) String() string
- type CreateAddressReq
- func (*CreateAddressReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAddressReq) GetAddress() string
- func (x *CreateAddressReq) GetMobile() string
- func (x *CreateAddressReq) GetName() string
- func (x *CreateAddressReq) GetPostCode() string
- func (x *CreateAddressReq) GetUid() int64
- func (*CreateAddressReq) ProtoMessage()
- func (x *CreateAddressReq) ProtoReflect() protoreflect.Message
- func (x *CreateAddressReq) Reset()
- func (x *CreateAddressReq) String() string
- type CreateCardReply
- type CreateCardReq
- func (*CreateCardReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCardReq) GetCardNo() string
- func (x *CreateCardReq) GetCcv() string
- func (x *CreateCardReq) GetExpires() string
- func (x *CreateCardReq) GetName() string
- func (x *CreateCardReq) GetUid() int64
- func (*CreateCardReq) ProtoMessage()
- func (x *CreateCardReq) ProtoReflect() protoreflect.Message
- func (x *CreateCardReq) Reset()
- func (x *CreateCardReq) String() string
- type CreateUserReply
- func (*CreateUserReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserReply) GetId() int64
- 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) 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
- type GetAddressReply
- func (*GetAddressReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetAddressReply) GetAddress() string
- func (x *GetAddressReply) GetId() int64
- func (x *GetAddressReply) GetMobile() string
- func (x *GetAddressReply) GetName() string
- func (x *GetAddressReply) GetPostCode() string
- func (*GetAddressReply) ProtoMessage()
- func (x *GetAddressReply) ProtoReflect() protoreflect.Message
- func (x *GetAddressReply) Reset()
- func (x *GetAddressReply) String() string
- type GetAddressReq
- type GetCardReply
- func (*GetCardReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetCardReply) GetCardNo() string
- func (x *GetCardReply) GetCcv() string
- func (x *GetCardReply) GetExpires() string
- func (x *GetCardReply) GetId() int64
- func (x *GetCardReply) GetName() string
- func (*GetCardReply) ProtoMessage()
- func (x *GetCardReply) ProtoReflect() protoreflect.Message
- func (x *GetCardReply) Reset()
- func (x *GetCardReply) String() string
- type GetCardReq
- type GetUserByUsernameReply
- func (*GetUserByUsernameReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserByUsernameReply) GetId() int64
- 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() int64
- 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 HealthReply
- type HealthReply_ServingStatus
- func (HealthReply_ServingStatus) Descriptor() protoreflect.EnumDescriptor
- func (x HealthReply_ServingStatus) Enum() *HealthReply_ServingStatus
- func (HealthReply_ServingStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x HealthReply_ServingStatus) Number() protoreflect.EnumNumber
- func (x HealthReply_ServingStatus) String() string
- func (HealthReply_ServingStatus) Type() protoreflect.EnumType
- type HealthReq
- type ListAddressReply
- func (*ListAddressReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListAddressReply) GetResults() []*ListAddressReply_Address
- func (*ListAddressReply) ProtoMessage()
- func (x *ListAddressReply) ProtoReflect() protoreflect.Message
- func (x *ListAddressReply) Reset()
- func (x *ListAddressReply) String() string
- type ListAddressReply_Address
- func (*ListAddressReply_Address) Descriptor() ([]byte, []int)deprecated
- func (x *ListAddressReply_Address) GetAddress() string
- func (x *ListAddressReply_Address) GetId() int64
- func (x *ListAddressReply_Address) GetMobile() string
- func (x *ListAddressReply_Address) GetName() string
- func (x *ListAddressReply_Address) GetPostCode() string
- func (*ListAddressReply_Address) ProtoMessage()
- func (x *ListAddressReply_Address) ProtoReflect() protoreflect.Message
- func (x *ListAddressReply_Address) Reset()
- func (x *ListAddressReply_Address) String() string
- type ListAddressReq
- type ListCardReply
- type ListCardReply_Card
- func (*ListCardReply_Card) Descriptor() ([]byte, []int)deprecated
- func (x *ListCardReply_Card) GetCardNo() string
- func (x *ListCardReply_Card) GetCcv() string
- func (x *ListCardReply_Card) GetExpires() string
- func (x *ListCardReply_Card) GetId() int64
- func (x *ListCardReply_Card) GetName() string
- func (*ListCardReply_Card) ProtoMessage()
- func (x *ListCardReply_Card) ProtoReflect() protoreflect.Message
- func (x *ListCardReply_Card) Reset()
- func (x *ListCardReply_Card) String() string
- type ListCardReq
- type ListUserReply
- type ListUserReply_User
- func (*ListUserReply_User) Descriptor() ([]byte, []int)deprecated
- func (x *ListUserReply_User) GetId() int64
- func (x *ListUserReply_User) GetName() string
- func (*ListUserReply_User) ProtoMessage()
- func (x *ListUserReply_User) ProtoReflect() protoreflect.Message
- func (x *ListUserReply_User) Reset()
- func (x *ListUserReply_User) String() string
- type ListUserReq
- 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) CreateAddress(context.Context, *CreateAddressReq) (*CreateAddressReply, error)
- func (UnimplementedUserServer) CreateCard(context.Context, *CreateCardReq) (*CreateCardReply, error)
- func (UnimplementedUserServer) CreateUser(context.Context, *CreateUserReq) (*CreateUserReply, error)
- func (UnimplementedUserServer) DeleteCard(context.Context, *DeleteCardReq) (*DeleteCardReply, error)
- func (UnimplementedUserServer) GetAddress(context.Context, *GetAddressReq) (*GetAddressReply, error)
- func (UnimplementedUserServer) GetCard(context.Context, *GetCardReq) (*GetCardReply, error)
- func (UnimplementedUserServer) GetUser(context.Context, *GetUserReq) (*GetUserReply, error)
- func (UnimplementedUserServer) GetUserByUsername(context.Context, *GetUserByUsernameReq) (*GetUserByUsernameReply, error)
- func (UnimplementedUserServer) HealthCheck(context.Context, *HealthReq) (*HealthReply, error)
- func (UnimplementedUserServer) ListAddress(context.Context, *ListAddressReq) (*ListAddressReply, error)
- func (UnimplementedUserServer) ListCard(context.Context, *ListCardReq) (*ListCardReply, error)
- func (UnimplementedUserServer) ListUser(context.Context, *ListUserReq) (*ListUserReply, 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
- type UserHTTPServer
- type UserServer
- type UserServiceErrorReason
- func (UserServiceErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x UserServiceErrorReason) Enum() *UserServiceErrorReason
- func (UserServiceErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x UserServiceErrorReason) Number() protoreflect.EnumNumber
- func (x UserServiceErrorReason) String() string
- func (UserServiceErrorReason) Type() protoreflect.EnumType
- 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 ¶
This section is empty.
Variables ¶
var ( HealthReply_ServingStatus_name = map[int32]string{ 0: "UNKNOWN", 1: "SERVING", 2: "NOT_SERVING", 3: "SERVICE_UNKNOWN", } HealthReply_ServingStatus_value = map[string]int32{ "UNKNOWN": 0, "SERVING": 1, "NOT_SERVING": 2, "SERVICE_UNKNOWN": 3, } )
Enum value maps for HealthReply_ServingStatus.
var ( UserServiceErrorReason_name = map[int32]string{ 0: "UNKNOWN_ERROR", 1: "LOGIN_FAILED", 2: "REGISTER_FAILED", 3: "USER_NOT_FOUND", } UserServiceErrorReason_value = map[string]int32{ "UNKNOWN_ERROR": 0, "LOGIN_FAILED": 1, "REGISTER_FAILED": 2, "USER_NOT_FOUND": 3, } )
Enum value maps for UserServiceErrorReason.
var File_api_user_service_v1_user_error_proto protoreflect.FileDescriptor
var File_api_user_service_v1_user_proto protoreflect.FileDescriptor
var User_ServiceDesc = grpc.ServiceDesc{ ServiceName: "user.service.v1.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: "ListUser", Handler: _User_ListUser_Handler, }, { MethodName: "VerifyPassword", Handler: _User_VerifyPassword_Handler, }, { MethodName: "ListAddress", Handler: _User_ListAddress_Handler, }, { MethodName: "CreateAddress", Handler: _User_CreateAddress_Handler, }, { MethodName: "GetAddress", Handler: _User_GetAddress_Handler, }, { MethodName: "ListCard", Handler: _User_ListCard_Handler, }, { MethodName: "CreateCard", Handler: _User_CreateCard_Handler, }, { MethodName: "GetCard", Handler: _User_GetCard_Handler, }, { MethodName: "DeleteCard", Handler: _User_DeleteCard_Handler, }, { MethodName: "HealthCheck", Handler: _User_HealthCheck_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/user/service/v1/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 ErrorLoginFailed ¶
func ErrorRegisterFailed ¶
func ErrorUnknownError ¶
func ErrorUserNotFound ¶
func IsLoginFailed ¶
func IsRegisterFailed ¶
func IsUnknownError ¶
func IsUserNotFound ¶
func RegisterUserHTTPServer ¶
func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer)
func RegisterUserServer ¶
func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
Types ¶
type CreateAddressReply ¶
type CreateAddressReply struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Mobile string `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"` Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` PostCode string `protobuf:"bytes,5,opt,name=post_code,json=postCode,proto3" json:"post_code,omitempty"` // contains filtered or unexported fields }
func (*CreateAddressReply) Descriptor
deprecated
func (*CreateAddressReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateAddressReply.ProtoReflect.Descriptor instead.
func (*CreateAddressReply) GetAddress ¶
func (x *CreateAddressReply) GetAddress() string
func (*CreateAddressReply) GetId ¶
func (x *CreateAddressReply) GetId() int64
func (*CreateAddressReply) GetMobile ¶
func (x *CreateAddressReply) GetMobile() string
func (*CreateAddressReply) GetName ¶
func (x *CreateAddressReply) GetName() string
func (*CreateAddressReply) GetPostCode ¶
func (x *CreateAddressReply) GetPostCode() string
func (*CreateAddressReply) ProtoMessage ¶
func (*CreateAddressReply) ProtoMessage()
func (*CreateAddressReply) ProtoReflect ¶
func (x *CreateAddressReply) ProtoReflect() protoreflect.Message
func (*CreateAddressReply) Reset ¶
func (x *CreateAddressReply) Reset()
func (*CreateAddressReply) String ¶
func (x *CreateAddressReply) String() string
type CreateAddressReq ¶
type CreateAddressReq struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Mobile string `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"` Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` PostCode string `protobuf:"bytes,5,opt,name=post_code,json=postCode,proto3" json:"post_code,omitempty"` // contains filtered or unexported fields }
func (*CreateAddressReq) Descriptor
deprecated
func (*CreateAddressReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateAddressReq.ProtoReflect.Descriptor instead.
func (*CreateAddressReq) GetAddress ¶
func (x *CreateAddressReq) GetAddress() string
func (*CreateAddressReq) GetMobile ¶
func (x *CreateAddressReq) GetMobile() string
func (*CreateAddressReq) GetName ¶
func (x *CreateAddressReq) GetName() string
func (*CreateAddressReq) GetPostCode ¶
func (x *CreateAddressReq) GetPostCode() string
func (*CreateAddressReq) GetUid ¶
func (x *CreateAddressReq) GetUid() int64
func (*CreateAddressReq) ProtoMessage ¶
func (*CreateAddressReq) ProtoMessage()
func (*CreateAddressReq) ProtoReflect ¶
func (x *CreateAddressReq) ProtoReflect() protoreflect.Message
func (*CreateAddressReq) Reset ¶
func (x *CreateAddressReq) Reset()
func (*CreateAddressReq) String ¶
func (x *CreateAddressReq) String() string
type CreateCardReply ¶
type CreateCardReply struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateCardReply) Descriptor
deprecated
func (*CreateCardReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateCardReply.ProtoReflect.Descriptor instead.
func (*CreateCardReply) GetId ¶
func (x *CreateCardReply) GetId() int64
func (*CreateCardReply) ProtoMessage ¶
func (*CreateCardReply) ProtoMessage()
func (*CreateCardReply) ProtoReflect ¶
func (x *CreateCardReply) ProtoReflect() protoreflect.Message
func (*CreateCardReply) Reset ¶
func (x *CreateCardReply) Reset()
func (*CreateCardReply) String ¶
func (x *CreateCardReply) String() string
type CreateCardReq ¶
type CreateCardReq struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` CardNo string `protobuf:"bytes,3,opt,name=card_no,json=cardNo,proto3" json:"card_no,omitempty"` Ccv string `protobuf:"bytes,4,opt,name=ccv,proto3" json:"ccv,omitempty"` Expires string `protobuf:"bytes,5,opt,name=expires,proto3" json:"expires,omitempty"` // contains filtered or unexported fields }
func (*CreateCardReq) Descriptor
deprecated
func (*CreateCardReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateCardReq.ProtoReflect.Descriptor instead.
func (*CreateCardReq) GetCardNo ¶
func (x *CreateCardReq) GetCardNo() string
func (*CreateCardReq) GetCcv ¶
func (x *CreateCardReq) GetCcv() string
func (*CreateCardReq) GetExpires ¶
func (x *CreateCardReq) GetExpires() string
func (*CreateCardReq) GetName ¶
func (x *CreateCardReq) GetName() string
func (*CreateCardReq) GetUid ¶
func (x *CreateCardReq) GetUid() int64
func (*CreateCardReq) ProtoMessage ¶
func (*CreateCardReq) ProtoMessage()
func (*CreateCardReq) ProtoReflect ¶
func (x *CreateCardReq) ProtoReflect() protoreflect.Message
func (*CreateCardReq) Reset ¶
func (x *CreateCardReq) Reset()
func (*CreateCardReq) String ¶
func (x *CreateCardReq) String() string
type CreateUserReply ¶
type CreateUserReply 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"` // 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() int64
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"` // contains filtered or unexported fields }
func (*CreateUserReq) Descriptor
deprecated
func (*CreateUserReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserReq.ProtoReflect.Descriptor instead.
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 { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` // contains filtered or unexported fields }
func (*DeleteCardReply) Descriptor
deprecated
func (*DeleteCardReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCardReply.ProtoReflect.Descriptor instead.
func (*DeleteCardReply) GetOk ¶
func (x *DeleteCardReply) GetOk() bool
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 { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` // contains filtered or unexported fields }
func (*DeleteCardReq) Descriptor
deprecated
func (*DeleteCardReq) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCardReq.ProtoReflect.Descriptor instead.
func (*DeleteCardReq) GetUid ¶
func (x *DeleteCardReq) GetUid() int64
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 GetAddressReply ¶
type GetAddressReply struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Mobile string `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"` Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` PostCode string `protobuf:"bytes,5,opt,name=post_code,json=postCode,proto3" json:"post_code,omitempty"` // contains filtered or unexported fields }
func (*GetAddressReply) Descriptor
deprecated
func (*GetAddressReply) Descriptor() ([]byte, []int)
Deprecated: Use GetAddressReply.ProtoReflect.Descriptor instead.
func (*GetAddressReply) GetAddress ¶
func (x *GetAddressReply) GetAddress() string
func (*GetAddressReply) GetId ¶
func (x *GetAddressReply) GetId() int64
func (*GetAddressReply) GetMobile ¶
func (x *GetAddressReply) GetMobile() string
func (*GetAddressReply) GetName ¶
func (x *GetAddressReply) GetName() string
func (*GetAddressReply) GetPostCode ¶
func (x *GetAddressReply) GetPostCode() string
func (*GetAddressReply) ProtoMessage ¶
func (*GetAddressReply) ProtoMessage()
func (*GetAddressReply) ProtoReflect ¶
func (x *GetAddressReply) ProtoReflect() protoreflect.Message
func (*GetAddressReply) Reset ¶
func (x *GetAddressReply) Reset()
func (*GetAddressReply) String ¶
func (x *GetAddressReply) String() string
type GetAddressReq ¶
type GetAddressReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetAddressReq) Descriptor
deprecated
func (*GetAddressReq) Descriptor() ([]byte, []int)
Deprecated: Use GetAddressReq.ProtoReflect.Descriptor instead.
func (*GetAddressReq) GetId ¶
func (x *GetAddressReq) GetId() int64
func (*GetAddressReq) ProtoMessage ¶
func (*GetAddressReq) ProtoMessage()
func (*GetAddressReq) ProtoReflect ¶
func (x *GetAddressReq) ProtoReflect() protoreflect.Message
func (*GetAddressReq) Reset ¶
func (x *GetAddressReq) Reset()
func (*GetAddressReq) String ¶
func (x *GetAddressReq) String() string
type GetCardReply ¶
type GetCardReply struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` CardNo string `protobuf:"bytes,3,opt,name=card_no,json=cardNo,proto3" json:"card_no,omitempty"` Ccv string `protobuf:"bytes,4,opt,name=ccv,proto3" json:"ccv,omitempty"` Expires string `protobuf:"bytes,5,opt,name=expires,proto3" json:"expires,omitempty"` // contains filtered or unexported fields }
func (*GetCardReply) Descriptor
deprecated
func (*GetCardReply) Descriptor() ([]byte, []int)
Deprecated: Use GetCardReply.ProtoReflect.Descriptor instead.
func (*GetCardReply) GetCardNo ¶
func (x *GetCardReply) GetCardNo() string
func (*GetCardReply) GetCcv ¶
func (x *GetCardReply) GetCcv() string
func (*GetCardReply) GetExpires ¶
func (x *GetCardReply) GetExpires() string
func (*GetCardReply) GetId ¶
func (x *GetCardReply) GetId() int64
func (*GetCardReply) GetName ¶
func (x *GetCardReply) GetName() string
func (*GetCardReply) ProtoMessage ¶
func (*GetCardReply) ProtoMessage()
func (*GetCardReply) ProtoReflect ¶
func (x *GetCardReply) ProtoReflect() protoreflect.Message
func (*GetCardReply) Reset ¶
func (x *GetCardReply) Reset()
func (*GetCardReply) String ¶
func (x *GetCardReply) String() string
type GetCardReq ¶
type GetCardReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetCardReq) Descriptor
deprecated
func (*GetCardReq) Descriptor() ([]byte, []int)
Deprecated: Use GetCardReq.ProtoReflect.Descriptor instead.
func (*GetCardReq) GetId ¶
func (x *GetCardReq) GetId() int64
func (*GetCardReq) ProtoMessage ¶
func (*GetCardReq) ProtoMessage()
func (*GetCardReq) ProtoReflect ¶
func (x *GetCardReq) ProtoReflect() protoreflect.Message
func (*GetCardReq) Reset ¶
func (x *GetCardReq) Reset()
func (*GetCardReq) String ¶
func (x *GetCardReq) String() string
type GetUserByUsernameReply ¶
type GetUserByUsernameReply 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"` // 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() int64
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 int64 `protobuf:"varint,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() int64
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 int64 `protobuf:"varint,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() int64
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 HealthReply ¶
type HealthReply struct { Status HealthReply_ServingStatus `protobuf:"varint,1,opt,name=status,proto3,enum=user.service.v1.HealthReply_ServingStatus" json:"status,omitempty"` // contains filtered or unexported fields }
func (*HealthReply) Descriptor
deprecated
func (*HealthReply) Descriptor() ([]byte, []int)
Deprecated: Use HealthReply.ProtoReflect.Descriptor instead.
func (*HealthReply) GetStatus ¶
func (x *HealthReply) GetStatus() HealthReply_ServingStatus
func (*HealthReply) ProtoMessage ¶
func (*HealthReply) ProtoMessage()
func (*HealthReply) ProtoReflect ¶
func (x *HealthReply) ProtoReflect() protoreflect.Message
func (*HealthReply) Reset ¶
func (x *HealthReply) Reset()
func (*HealthReply) String ¶
func (x *HealthReply) String() string
type HealthReply_ServingStatus ¶
type HealthReply_ServingStatus int32
const ( HealthReply_UNKNOWN HealthReply_ServingStatus = 0 HealthReply_SERVING HealthReply_ServingStatus = 1 HealthReply_NOT_SERVING HealthReply_ServingStatus = 2 HealthReply_SERVICE_UNKNOWN HealthReply_ServingStatus = 3 )
func (HealthReply_ServingStatus) Descriptor ¶
func (HealthReply_ServingStatus) Descriptor() protoreflect.EnumDescriptor
func (HealthReply_ServingStatus) Enum ¶
func (x HealthReply_ServingStatus) Enum() *HealthReply_ServingStatus
func (HealthReply_ServingStatus) EnumDescriptor
deprecated
func (HealthReply_ServingStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use HealthReply_ServingStatus.Descriptor instead.
func (HealthReply_ServingStatus) Number ¶
func (x HealthReply_ServingStatus) Number() protoreflect.EnumNumber
func (HealthReply_ServingStatus) String ¶
func (x HealthReply_ServingStatus) String() string
func (HealthReply_ServingStatus) Type ¶
func (HealthReply_ServingStatus) Type() protoreflect.EnumType
type HealthReq ¶
type HealthReq struct {
// contains filtered or unexported fields
}
func (*HealthReq) Descriptor
deprecated
func (*HealthReq) ProtoMessage ¶
func (*HealthReq) ProtoMessage()
func (*HealthReq) ProtoReflect ¶
func (x *HealthReq) ProtoReflect() protoreflect.Message
type ListAddressReply ¶
type ListAddressReply struct { Results []*ListAddressReply_Address `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*ListAddressReply) Descriptor
deprecated
func (*ListAddressReply) Descriptor() ([]byte, []int)
Deprecated: Use ListAddressReply.ProtoReflect.Descriptor instead.
func (*ListAddressReply) GetResults ¶
func (x *ListAddressReply) GetResults() []*ListAddressReply_Address
func (*ListAddressReply) ProtoMessage ¶
func (*ListAddressReply) ProtoMessage()
func (*ListAddressReply) ProtoReflect ¶
func (x *ListAddressReply) ProtoReflect() protoreflect.Message
func (*ListAddressReply) Reset ¶
func (x *ListAddressReply) Reset()
func (*ListAddressReply) String ¶
func (x *ListAddressReply) String() string
type ListAddressReply_Address ¶
type ListAddressReply_Address struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Mobile string `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"` Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` PostCode string `protobuf:"bytes,5,opt,name=post_code,json=postCode,proto3" json:"post_code,omitempty"` // contains filtered or unexported fields }
func (*ListAddressReply_Address) Descriptor
deprecated
func (*ListAddressReply_Address) Descriptor() ([]byte, []int)
Deprecated: Use ListAddressReply_Address.ProtoReflect.Descriptor instead.
func (*ListAddressReply_Address) GetAddress ¶
func (x *ListAddressReply_Address) GetAddress() string
func (*ListAddressReply_Address) GetId ¶
func (x *ListAddressReply_Address) GetId() int64
func (*ListAddressReply_Address) GetMobile ¶
func (x *ListAddressReply_Address) GetMobile() string
func (*ListAddressReply_Address) GetName ¶
func (x *ListAddressReply_Address) GetName() string
func (*ListAddressReply_Address) GetPostCode ¶
func (x *ListAddressReply_Address) GetPostCode() string
func (*ListAddressReply_Address) ProtoMessage ¶
func (*ListAddressReply_Address) ProtoMessage()
func (*ListAddressReply_Address) ProtoReflect ¶
func (x *ListAddressReply_Address) ProtoReflect() protoreflect.Message
func (*ListAddressReply_Address) Reset ¶
func (x *ListAddressReply_Address) Reset()
func (*ListAddressReply_Address) String ¶
func (x *ListAddressReply_Address) String() string
type ListAddressReq ¶
type ListAddressReq struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` // contains filtered or unexported fields }
func (*ListAddressReq) Descriptor
deprecated
func (*ListAddressReq) Descriptor() ([]byte, []int)
Deprecated: Use ListAddressReq.ProtoReflect.Descriptor instead.
func (*ListAddressReq) GetUid ¶
func (x *ListAddressReq) GetUid() int64
func (*ListAddressReq) ProtoMessage ¶
func (*ListAddressReq) ProtoMessage()
func (*ListAddressReq) ProtoReflect ¶
func (x *ListAddressReq) ProtoReflect() protoreflect.Message
func (*ListAddressReq) Reset ¶
func (x *ListAddressReq) Reset()
func (*ListAddressReq) String ¶
func (x *ListAddressReq) String() string
type ListCardReply ¶
type ListCardReply struct { Results []*ListCardReply_Card `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*ListCardReply) Descriptor
deprecated
func (*ListCardReply) Descriptor() ([]byte, []int)
Deprecated: Use ListCardReply.ProtoReflect.Descriptor instead.
func (*ListCardReply) GetResults ¶
func (x *ListCardReply) GetResults() []*ListCardReply_Card
func (*ListCardReply) ProtoMessage ¶
func (*ListCardReply) ProtoMessage()
func (*ListCardReply) ProtoReflect ¶
func (x *ListCardReply) ProtoReflect() protoreflect.Message
func (*ListCardReply) Reset ¶
func (x *ListCardReply) Reset()
func (*ListCardReply) String ¶
func (x *ListCardReply) String() string
type ListCardReply_Card ¶
type ListCardReply_Card struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` CardNo string `protobuf:"bytes,3,opt,name=card_no,json=cardNo,proto3" json:"card_no,omitempty"` Ccv string `protobuf:"bytes,4,opt,name=ccv,proto3" json:"ccv,omitempty"` Expires string `protobuf:"bytes,5,opt,name=expires,proto3" json:"expires,omitempty"` // contains filtered or unexported fields }
func (*ListCardReply_Card) Descriptor
deprecated
func (*ListCardReply_Card) Descriptor() ([]byte, []int)
Deprecated: Use ListCardReply_Card.ProtoReflect.Descriptor instead.
func (*ListCardReply_Card) GetCardNo ¶
func (x *ListCardReply_Card) GetCardNo() string
func (*ListCardReply_Card) GetCcv ¶
func (x *ListCardReply_Card) GetCcv() string
func (*ListCardReply_Card) GetExpires ¶
func (x *ListCardReply_Card) GetExpires() string
func (*ListCardReply_Card) GetId ¶
func (x *ListCardReply_Card) GetId() int64
func (*ListCardReply_Card) GetName ¶
func (x *ListCardReply_Card) GetName() string
func (*ListCardReply_Card) ProtoMessage ¶
func (*ListCardReply_Card) ProtoMessage()
func (*ListCardReply_Card) ProtoReflect ¶
func (x *ListCardReply_Card) ProtoReflect() protoreflect.Message
func (*ListCardReply_Card) Reset ¶
func (x *ListCardReply_Card) Reset()
func (*ListCardReply_Card) String ¶
func (x *ListCardReply_Card) String() string
type ListCardReq ¶
type ListCardReq struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` // contains filtered or unexported fields }
func (*ListCardReq) Descriptor
deprecated
func (*ListCardReq) Descriptor() ([]byte, []int)
Deprecated: Use ListCardReq.ProtoReflect.Descriptor instead.
func (*ListCardReq) GetUid ¶
func (x *ListCardReq) GetUid() int64
func (*ListCardReq) ProtoMessage ¶
func (*ListCardReq) ProtoMessage()
func (*ListCardReq) ProtoReflect ¶
func (x *ListCardReq) ProtoReflect() protoreflect.Message
func (*ListCardReq) Reset ¶
func (x *ListCardReq) Reset()
func (*ListCardReq) String ¶
func (x *ListCardReq) String() string
type ListUserReply ¶
type ListUserReply struct { Results []*ListUserReply_User `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*ListUserReply) Descriptor
deprecated
func (*ListUserReply) Descriptor() ([]byte, []int)
Deprecated: Use ListUserReply.ProtoReflect.Descriptor instead.
func (*ListUserReply) GetResults ¶
func (x *ListUserReply) GetResults() []*ListUserReply_User
func (*ListUserReply) ProtoMessage ¶
func (*ListUserReply) ProtoMessage()
func (*ListUserReply) ProtoReflect ¶
func (x *ListUserReply) ProtoReflect() protoreflect.Message
func (*ListUserReply) Reset ¶
func (x *ListUserReply) Reset()
func (*ListUserReply) String ¶
func (x *ListUserReply) String() string
type ListUserReply_User ¶
type ListUserReply_User struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*ListUserReply_User) Descriptor
deprecated
func (*ListUserReply_User) Descriptor() ([]byte, []int)
Deprecated: Use ListUserReply_User.ProtoReflect.Descriptor instead.
func (*ListUserReply_User) GetId ¶
func (x *ListUserReply_User) GetId() int64
func (*ListUserReply_User) GetName ¶
func (x *ListUserReply_User) GetName() string
func (*ListUserReply_User) ProtoMessage ¶
func (*ListUserReply_User) ProtoMessage()
func (*ListUserReply_User) ProtoReflect ¶
func (x *ListUserReply_User) ProtoReflect() protoreflect.Message
func (*ListUserReply_User) Reset ¶
func (x *ListUserReply_User) Reset()
func (*ListUserReply_User) String ¶
func (x *ListUserReply_User) String() string
type ListUserReq ¶
type ListUserReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*ListUserReq) Descriptor
deprecated
func (*ListUserReq) Descriptor() ([]byte, []int)
Deprecated: Use ListUserReq.ProtoReflect.Descriptor instead.
func (*ListUserReq) GetId ¶
func (x *ListUserReq) GetId() int64
func (*ListUserReq) ProtoMessage ¶
func (*ListUserReq) ProtoMessage()
func (*ListUserReq) ProtoReflect ¶
func (x *ListUserReq) ProtoReflect() protoreflect.Message
func (*ListUserReq) Reset ¶
func (x *ListUserReq) Reset()
func (*ListUserReq) String ¶
func (x *ListUserReq) 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) CreateAddress ¶
func (UnimplementedUserServer) CreateAddress(context.Context, *CreateAddressReq) (*CreateAddressReply, error)
func (UnimplementedUserServer) CreateCard ¶
func (UnimplementedUserServer) CreateCard(context.Context, *CreateCardReq) (*CreateCardReply, 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) GetAddress ¶
func (UnimplementedUserServer) GetAddress(context.Context, *GetAddressReq) (*GetAddressReply, error)
func (UnimplementedUserServer) GetCard ¶
func (UnimplementedUserServer) GetCard(context.Context, *GetCardReq) (*GetCardReply, 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) HealthCheck ¶
func (UnimplementedUserServer) HealthCheck(context.Context, *HealthReq) (*HealthReply, error)
func (UnimplementedUserServer) ListAddress ¶
func (UnimplementedUserServer) ListAddress(context.Context, *ListAddressReq) (*ListAddressReply, error)
func (UnimplementedUserServer) ListCard ¶
func (UnimplementedUserServer) ListCard(context.Context, *ListCardReq) (*ListCardReply, error)
func (UnimplementedUserServer) ListUser ¶
func (UnimplementedUserServer) ListUser(context.Context, *ListUserReq) (*ListUserReply, 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) ListUser(ctx context.Context, in *ListUserReq, opts ...grpc.CallOption) (*ListUserReply, error) VerifyPassword(ctx context.Context, in *VerifyPasswordReq, opts ...grpc.CallOption) (*VerifyPasswordReply, error) ListAddress(ctx context.Context, in *ListAddressReq, opts ...grpc.CallOption) (*ListAddressReply, error) CreateAddress(ctx context.Context, in *CreateAddressReq, opts ...grpc.CallOption) (*CreateAddressReply, error) GetAddress(ctx context.Context, in *GetAddressReq, opts ...grpc.CallOption) (*GetAddressReply, error) ListCard(ctx context.Context, in *ListCardReq, opts ...grpc.CallOption) (*ListCardReply, error) CreateCard(ctx context.Context, in *CreateCardReq, opts ...grpc.CallOption) (*CreateCardReply, error) GetCard(ctx context.Context, in *GetCardReq, opts ...grpc.CallOption) (*GetCardReply, error) DeleteCard(ctx context.Context, in *DeleteCardReq, opts ...grpc.CallOption) (*DeleteCardReply, error) HealthCheck(ctx context.Context, in *HealthReq, opts ...grpc.CallOption) (*HealthReply, 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 {
HealthCheck(ctx context.Context, req *HealthReq, opts ...http.CallOption) (rsp *HealthReply, err error)
}
func NewUserHTTPClient ¶
func NewUserHTTPClient(client *http.Client) UserHTTPClient
type UserHTTPClientImpl ¶
type UserHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*UserHTTPClientImpl) HealthCheck ¶
func (c *UserHTTPClientImpl) HealthCheck(ctx context.Context, in *HealthReq, opts ...http.CallOption) (*HealthReply, error)
type UserHTTPServer ¶
type UserHTTPServer interface {
HealthCheck(context.Context, *HealthReq) (*HealthReply, 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) ListUser(context.Context, *ListUserReq) (*ListUserReply, error) VerifyPassword(context.Context, *VerifyPasswordReq) (*VerifyPasswordReply, error) ListAddress(context.Context, *ListAddressReq) (*ListAddressReply, error) CreateAddress(context.Context, *CreateAddressReq) (*CreateAddressReply, error) GetAddress(context.Context, *GetAddressReq) (*GetAddressReply, error) ListCard(context.Context, *ListCardReq) (*ListCardReply, error) CreateCard(context.Context, *CreateCardReq) (*CreateCardReply, error) GetCard(context.Context, *GetCardReq) (*GetCardReply, error) DeleteCard(context.Context, *DeleteCardReq) (*DeleteCardReply, error) HealthCheck(context.Context, *HealthReq) (*HealthReply, error) // contains filtered or unexported methods }
UserServer is the server API for User service. All implementations must embed UnimplementedUserServer for forward compatibility
type UserServiceErrorReason ¶
type UserServiceErrorReason int32
const ( UserServiceErrorReason_UNKNOWN_ERROR UserServiceErrorReason = 0 UserServiceErrorReason_LOGIN_FAILED UserServiceErrorReason = 1 UserServiceErrorReason_REGISTER_FAILED UserServiceErrorReason = 2 UserServiceErrorReason_USER_NOT_FOUND UserServiceErrorReason = 3 )
func (UserServiceErrorReason) Descriptor ¶
func (UserServiceErrorReason) Descriptor() protoreflect.EnumDescriptor
func (UserServiceErrorReason) Enum ¶
func (x UserServiceErrorReason) Enum() *UserServiceErrorReason
func (UserServiceErrorReason) EnumDescriptor
deprecated
func (UserServiceErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use UserServiceErrorReason.Descriptor instead.
func (UserServiceErrorReason) Number ¶
func (x UserServiceErrorReason) Number() protoreflect.EnumNumber
func (UserServiceErrorReason) String ¶
func (x UserServiceErrorReason) String() string
func (UserServiceErrorReason) Type ¶
func (UserServiceErrorReason) Type() protoreflect.EnumType
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