v1

package
v0.0.0-...-c8c1909 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_user_service_v1_user_proto protoreflect.FileDescriptor
View Source
var User_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.server.service.v1.User",
	HandlerType: (*UserServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "VerifyPassword",
			Handler:    _User_VerifyPassword_Handler,
		},
		{
			MethodName: "CreateUser",
			Handler:    _User_CreateUser_Handler,
		},
		{
			MethodName: "Save",
			Handler:    _User_Save_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _User_GetUser_Handler,
		},
		{
			MethodName: "GetUserByUserName",
			Handler:    _User_GetUserByUserName_Handler,
		},
		{
			MethodName: "ListUser",
			Handler:    _User_ListUser_Handler,
		},
		{
			MethodName: "CreateAddress",
			Handler:    _User_CreateAddress_Handler,
		},
		{
			MethodName: "GetAddress",
			Handler:    _User_GetAddress_Handler,
		},
		{
			MethodName: "ListAddresses",
			Handler:    _User_ListAddresses_Handler,
		},
		{
			MethodName: "CreateCard",
			Handler:    _User_CreateCard_Handler,
		},
		{
			MethodName: "GetCard",
			Handler:    _User_GetCard_Handler,
		},
		{
			MethodName: "ListCard",
			Handler:    _User_ListCard_Handler,
		},
		{
			MethodName: "DeleteCard",
			Handler:    _User_DeleteCard_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/server/service/v1/server.proto",
}

User_ServiceDesc is the grpc.ServiceDesc for User service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterUserServer

func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)

Types

type 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 CreateAddressRequest

type CreateAddressRequest 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 (*CreateAddressRequest) Descriptor deprecated

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

Deprecated: Use CreateAddressRequest.ProtoReflect.Descriptor instead.

func (*CreateAddressRequest) GetAddress

func (x *CreateAddressRequest) GetAddress() string

func (*CreateAddressRequest) GetMobile

func (x *CreateAddressRequest) GetMobile() string

func (*CreateAddressRequest) GetName

func (x *CreateAddressRequest) GetName() string

func (*CreateAddressRequest) GetPostCode

func (x *CreateAddressRequest) GetPostCode() string

func (*CreateAddressRequest) GetUid

func (x *CreateAddressRequest) GetUid() int64

func (*CreateAddressRequest) ProtoMessage

func (*CreateAddressRequest) ProtoMessage()

func (*CreateAddressRequest) ProtoReflect

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

func (*CreateAddressRequest) Reset

func (x *CreateAddressRequest) Reset()

func (*CreateAddressRequest) String

func (x *CreateAddressRequest) 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 CreateCardRequest

type CreateCardRequest struct {
	Uid     int64  `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"`
	CardNo  string `protobuf:"bytes,2,opt,name=card_no,json=cardNo,proto3" json:"card_no,omitempty"`
	Ccv     string `protobuf:"bytes,3,opt,name=ccv,proto3" json:"ccv,omitempty"`
	Expires string `protobuf:"bytes,4,opt,name=expires,proto3" json:"expires,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateCardRequest) Descriptor deprecated

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

Deprecated: Use CreateCardRequest.ProtoReflect.Descriptor instead.

func (*CreateCardRequest) GetCardNo

func (x *CreateCardRequest) GetCardNo() string

func (*CreateCardRequest) GetCcv

func (x *CreateCardRequest) GetCcv() string

func (*CreateCardRequest) GetExpires

func (x *CreateCardRequest) GetExpires() string

func (*CreateCardRequest) GetUid

func (x *CreateCardRequest) GetUid() int64

func (*CreateCardRequest) ProtoMessage

func (*CreateCardRequest) ProtoMessage()

func (*CreateCardRequest) ProtoReflect

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

func (*CreateCardRequest) Reset

func (x *CreateCardRequest) Reset()

func (*CreateCardRequest) String

func (x *CreateCardRequest) 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 CreateUserRequest

type CreateUserRequest 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 (*CreateUserRequest) Descriptor deprecated

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

Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.

func (*CreateUserRequest) GetPassword

func (x *CreateUserRequest) GetPassword() string

func (*CreateUserRequest) GetUsername

func (x *CreateUserRequest) GetUsername() string

func (*CreateUserRequest) ProtoMessage

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) ProtoReflect

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

func (*CreateUserRequest) Reset

func (x *CreateUserRequest) Reset()

func (*CreateUserRequest) String

func (x *CreateUserRequest) 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 DeleteCardRequest

type DeleteCardRequest struct {
	Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteCardRequest) Descriptor deprecated

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

Deprecated: Use DeleteCardRequest.ProtoReflect.Descriptor instead.

func (*DeleteCardRequest) GetUid

func (x *DeleteCardRequest) GetUid() int64

func (*DeleteCardRequest) ProtoMessage

func (*DeleteCardRequest) ProtoMessage()

func (*DeleteCardRequest) ProtoReflect

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

func (*DeleteCardRequest) Reset

func (x *DeleteCardRequest) Reset()

func (*DeleteCardRequest) String

func (x *DeleteCardRequest) String() string

type DeleteUserReply

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

func (*DeleteUserReply) Descriptor deprecated

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

Deprecated: Use DeleteUserReply.ProtoReflect.Descriptor instead.

func (*DeleteUserReply) ProtoMessage

func (*DeleteUserReply) ProtoMessage()

func (*DeleteUserReply) ProtoReflect

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

func (*DeleteUserReply) Reset

func (x *DeleteUserReply) Reset()

func (*DeleteUserReply) String

func (x *DeleteUserReply) String() string

type DeleteUserRequest

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

func (*DeleteUserRequest) Descriptor deprecated

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

Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.

func (*DeleteUserRequest) ProtoMessage

func (*DeleteUserRequest) ProtoMessage()

func (*DeleteUserRequest) ProtoReflect

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

func (*DeleteUserRequest) Reset

func (x *DeleteUserRequest) Reset()

func (*DeleteUserRequest) String

func (x *DeleteUserRequest) 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 GetAddressRequest

type GetAddressRequest struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAddressRequest) Descriptor deprecated

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

Deprecated: Use GetAddressRequest.ProtoReflect.Descriptor instead.

func (*GetAddressRequest) GetId

func (x *GetAddressRequest) GetId() int64

func (*GetAddressRequest) ProtoMessage

func (*GetAddressRequest) ProtoMessage()

func (*GetAddressRequest) ProtoReflect

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

func (*GetAddressRequest) Reset

func (x *GetAddressRequest) Reset()

func (*GetAddressRequest) String

func (x *GetAddressRequest) String() string

type GetCardReply

type GetCardReply struct {
	Id      int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	CardNo  string `protobuf:"bytes,2,opt,name=card_no,json=cardNo,proto3" json:"card_no,omitempty"`
	Ccv     string `protobuf:"bytes,3,opt,name=ccv,proto3" json:"ccv,omitempty"`
	Expires string `protobuf:"bytes,4,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) 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 GetCardRequest

type GetCardRequest struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCardRequest) Descriptor deprecated

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

Deprecated: Use GetCardRequest.ProtoReflect.Descriptor instead.

func (*GetCardRequest) GetId

func (x *GetCardRequest) GetId() int64

func (*GetCardRequest) ProtoMessage

func (*GetCardRequest) ProtoMessage()

func (*GetCardRequest) ProtoReflect

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

func (*GetCardRequest) Reset

func (x *GetCardRequest) Reset()

func (*GetCardRequest) String

func (x *GetCardRequest) 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 GetUserByUserNameRequest

type GetUserByUserNameRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserByUserNameRequest) Descriptor deprecated

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

Deprecated: Use GetUserByUserNameRequest.ProtoReflect.Descriptor instead.

func (*GetUserByUserNameRequest) GetUsername

func (x *GetUserByUserNameRequest) GetUsername() string

func (*GetUserByUserNameRequest) ProtoMessage

func (*GetUserByUserNameRequest) ProtoMessage()

func (*GetUserByUserNameRequest) ProtoReflect

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

func (*GetUserByUserNameRequest) Reset

func (x *GetUserByUserNameRequest) Reset()

func (*GetUserByUserNameRequest) String

func (x *GetUserByUserNameRequest) 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 GetUserRequest

type GetUserRequest struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserRequest) Descriptor deprecated

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

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetId

func (x *GetUserRequest) GetId() int64

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) ProtoReflect

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

func (*GetUserRequest) Reset

func (x *GetUserRequest) Reset()

func (*GetUserRequest) String

func (x *GetUserRequest) String() string

type ListAddressesReply

type ListAddressesReply struct {
	Results []*ListAddressesReply_Address `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAddressesReply) Descriptor deprecated

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

Deprecated: Use ListAddressesReply.ProtoReflect.Descriptor instead.

func (*ListAddressesReply) GetResults

func (*ListAddressesReply) ProtoMessage

func (*ListAddressesReply) ProtoMessage()

func (*ListAddressesReply) ProtoReflect

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

func (*ListAddressesReply) Reset

func (x *ListAddressesReply) Reset()

func (*ListAddressesReply) String

func (x *ListAddressesReply) String() string

type ListAddressesReply_Address

type ListAddressesReply_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 (*ListAddressesReply_Address) Descriptor deprecated

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

Deprecated: Use ListAddressesReply_Address.ProtoReflect.Descriptor instead.

func (*ListAddressesReply_Address) GetAddress

func (x *ListAddressesReply_Address) GetAddress() string

func (*ListAddressesReply_Address) GetId

func (x *ListAddressesReply_Address) GetId() int64

func (*ListAddressesReply_Address) GetMobile

func (x *ListAddressesReply_Address) GetMobile() string

func (*ListAddressesReply_Address) GetName

func (x *ListAddressesReply_Address) GetName() string

func (*ListAddressesReply_Address) GetPostCode

func (x *ListAddressesReply_Address) GetPostCode() string

func (*ListAddressesReply_Address) ProtoMessage

func (*ListAddressesReply_Address) ProtoMessage()

func (*ListAddressesReply_Address) ProtoReflect

func (*ListAddressesReply_Address) Reset

func (x *ListAddressesReply_Address) Reset()

func (*ListAddressesReply_Address) String

func (x *ListAddressesReply_Address) String() string

type ListAddressesRequest

type ListAddressesRequest struct {
	Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAddressesRequest) Descriptor deprecated

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

Deprecated: Use ListAddressesRequest.ProtoReflect.Descriptor instead.

func (*ListAddressesRequest) GetUid

func (x *ListAddressesRequest) GetUid() int64

func (*ListAddressesRequest) ProtoMessage

func (*ListAddressesRequest) ProtoMessage()

func (*ListAddressesRequest) ProtoReflect

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

func (*ListAddressesRequest) Reset

func (x *ListAddressesRequest) Reset()

func (*ListAddressesRequest) String

func (x *ListAddressesRequest) 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"`
	CardNo  string `protobuf:"bytes,2,opt,name=card_no,json=cardNo,proto3" json:"card_no,omitempty"`
	Ccv     string `protobuf:"bytes,3,opt,name=ccv,proto3" json:"ccv,omitempty"`
	Expires string `protobuf:"bytes,4,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) 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 ListCardRequest

type ListCardRequest struct {
	Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCardRequest) Descriptor deprecated

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

Deprecated: Use ListCardRequest.ProtoReflect.Descriptor instead.

func (*ListCardRequest) GetUid

func (x *ListCardRequest) GetUid() int64

func (*ListCardRequest) ProtoMessage

func (*ListCardRequest) ProtoMessage()

func (*ListCardRequest) ProtoReflect

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

func (*ListCardRequest) Reset

func (x *ListCardRequest) Reset()

func (*ListCardRequest) String

func (x *ListCardRequest) 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"`
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,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) GetUsername

func (x *ListUserReply_User) GetUsername() 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 ListUserRequest

type ListUserRequest struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserRequest) Descriptor deprecated

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

Deprecated: Use ListUserRequest.ProtoReflect.Descriptor instead.

func (*ListUserRequest) GetId

func (x *ListUserRequest) GetId() int64

func (*ListUserRequest) ProtoMessage

func (*ListUserRequest) ProtoMessage()

func (*ListUserRequest) ProtoReflect

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

func (*ListUserRequest) Reset

func (x *ListUserRequest) Reset()

func (*ListUserRequest) String

func (x *ListUserRequest) 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 SaveUserRequest

type SaveUserRequest 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"`
	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*SaveUserRequest) Descriptor deprecated

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

Deprecated: Use SaveUserRequest.ProtoReflect.Descriptor instead.

func (*SaveUserRequest) GetId

func (x *SaveUserRequest) GetId() int64

func (*SaveUserRequest) GetName

func (x *SaveUserRequest) GetName() string

func (*SaveUserRequest) GetPassword

func (x *SaveUserRequest) GetPassword() string

func (*SaveUserRequest) ProtoMessage

func (*SaveUserRequest) ProtoMessage()

func (*SaveUserRequest) ProtoReflect

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

func (*SaveUserRequest) Reset

func (x *SaveUserRequest) Reset()

func (*SaveUserRequest) String

func (x *SaveUserRequest) 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) ListAddresses

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 UpdateUserReply

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

func (*UpdateUserReply) Descriptor deprecated

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

Deprecated: Use UpdateUserReply.ProtoReflect.Descriptor instead.

func (*UpdateUserReply) ProtoMessage

func (*UpdateUserReply) ProtoMessage()

func (*UpdateUserReply) ProtoReflect

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

func (*UpdateUserReply) Reset

func (x *UpdateUserReply) Reset()

func (*UpdateUserReply) String

func (x *UpdateUserReply) String() string

type UpdateUserRequest

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

func (*UpdateUserRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) ProtoMessage

func (*UpdateUserRequest) ProtoMessage()

func (*UpdateUserRequest) ProtoReflect

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

func (*UpdateUserRequest) Reset

func (x *UpdateUserRequest) Reset()

func (*UpdateUserRequest) String

func (x *UpdateUserRequest) String() string

type UserClient

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 UserServer

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 VerifyPasswordRequest

type VerifyPasswordRequest 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 (*VerifyPasswordRequest) Descriptor deprecated

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

Deprecated: Use VerifyPasswordRequest.ProtoReflect.Descriptor instead.

func (*VerifyPasswordRequest) GetPassword

func (x *VerifyPasswordRequest) GetPassword() string

func (*VerifyPasswordRequest) GetUsername

func (x *VerifyPasswordRequest) GetUsername() string

func (*VerifyPasswordRequest) ProtoMessage

func (*VerifyPasswordRequest) ProtoMessage()

func (*VerifyPasswordRequest) ProtoReflect

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

func (*VerifyPasswordRequest) Reset

func (x *VerifyPasswordRequest) Reset()

func (*VerifyPasswordRequest) String

func (x *VerifyPasswordRequest) String() string

Jump to

Keyboard shortcuts

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