v1

package
v0.0.0-...-86dbffa Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
var File_api_user_service_v1_user_error_proto protoreflect.FileDescriptor
View Source
var File_api_user_service_v1_user_proto protoreflect.FileDescriptor
View Source
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 ErrorLoginFailed(format string, args ...interface{}) *errors.Error

func ErrorRegisterFailed

func ErrorRegisterFailed(format string, args ...interface{}) *errors.Error

func ErrorUnknownError

func ErrorUnknownError(format string, args ...interface{}) *errors.Error

func ErrorUserNotFound

func ErrorUserNotFound(format string, args ...interface{}) *errors.Error

func IsLoginFailed

func IsLoginFailed(err error) bool

func IsRegisterFailed

func IsRegisterFailed(err error) bool

func IsUnknownError

func IsUnknownError(err error) bool

func IsUserNotFound

func IsUserNotFound(err error) bool

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) Enum

func (HealthReply_ServingStatus) EnumDescriptor deprecated

func (HealthReply_ServingStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use HealthReply_ServingStatus.Descriptor instead.

func (HealthReply_ServingStatus) Number

func (HealthReply_ServingStatus) String

func (x HealthReply_ServingStatus) String() string

func (HealthReply_ServingStatus) Type

type HealthReq

type HealthReq struct {
	// contains filtered or unexported fields
}

func (*HealthReq) Descriptor deprecated

func (*HealthReq) Descriptor() ([]byte, []int)

Deprecated: Use HealthReq.ProtoReflect.Descriptor instead.

func (*HealthReq) ProtoMessage

func (*HealthReq) ProtoMessage()

func (*HealthReq) ProtoReflect

func (x *HealthReq) ProtoReflect() protoreflect.Message

func (*HealthReq) Reset

func (x *HealthReq) Reset()

func (*HealthReq) String

func (x *HealthReq) String() string

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) CreateCard

func (UnimplementedUserServer) CreateUser

func (UnimplementedUserServer) DeleteCard

func (UnimplementedUserServer) GetAddress

func (UnimplementedUserServer) GetCard

func (UnimplementedUserServer) GetUser

func (UnimplementedUserServer) GetUserByUsername

func (UnimplementedUserServer) HealthCheck

func (UnimplementedUserServer) ListAddress

func (UnimplementedUserServer) ListCard

func (UnimplementedUserServer) ListUser

func (UnimplementedUserServer) Save

func (UnimplementedUserServer) VerifyPassword

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

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) Enum

func (UserServiceErrorReason) EnumDescriptor deprecated

func (UserServiceErrorReason) EnumDescriptor() ([]byte, []int)

Deprecated: Use UserServiceErrorReason.Descriptor instead.

func (UserServiceErrorReason) Number

func (UserServiceErrorReason) String

func (x UserServiceErrorReason) String() string

func (UserServiceErrorReason) Type

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

Jump to

Keyboard shortcuts

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