v1

package
v0.0.0-...-b12402e Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ShopInterfaceErrorReason_name = map[int32]string{
		0: "UNKNOWN_ERROR",
		1: "LOGIN_FAILED",
		2: "USERNAME_CONFLICT",
		3: "REGISTER_FAILED",
	}
	ShopInterfaceErrorReason_value = map[string]int32{
		"UNKNOWN_ERROR":     0,
		"LOGIN_FAILED":      1,
		"USERNAME_CONFLICT": 2,
		"REGISTER_FAILED":   3,
	}
)

Enum value maps for ShopInterfaceErrorReason.

View Source
var File_v1_shop_interface_error_proto protoreflect.FileDescriptor
View Source
var File_v1_shop_interface_proto protoreflect.FileDescriptor
View Source
var ShopInterface_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "shop.interface.v1.ShopInterface",
	HandlerType: (*ShopInterfaceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Register",
			Handler:    _ShopInterface_Register_Handler,
		},
		{
			MethodName: "Login",
			Handler:    _ShopInterface_Login_Handler,
		},
		{
			MethodName: "Logout",
			Handler:    _ShopInterface_Logout_Handler,
		},
		{
			MethodName: "ListAddress",
			Handler:    _ShopInterface_ListAddress_Handler,
		},
		{
			MethodName: "CreateAddress",
			Handler:    _ShopInterface_CreateAddress_Handler,
		},
		{
			MethodName: "GetAddress",
			Handler:    _ShopInterface_GetAddress_Handler,
		},
		{
			MethodName: "ListCard",
			Handler:    _ShopInterface_ListCard_Handler,
		},
		{
			MethodName: "CreateCard",
			Handler:    _ShopInterface_CreateCard_Handler,
		},
		{
			MethodName: "GetCard",
			Handler:    _ShopInterface_GetCard_Handler,
		},
		{
			MethodName: "DeleteCard",
			Handler:    _ShopInterface_DeleteCard_Handler,
		},
		{
			MethodName: "ListBeer",
			Handler:    _ShopInterface_ListBeer_Handler,
		},
		{
			MethodName: "GetBeer",
			Handler:    _ShopInterface_GetBeer_Handler,
		},
		{
			MethodName: "ListCartItem",
			Handler:    _ShopInterface_ListCartItem_Handler,
		},
		{
			MethodName: "AddCartItem",
			Handler:    _ShopInterface_AddCartItem_Handler,
		},
		{
			MethodName: "CreateOrder",
			Handler:    _ShopInterface_CreateOrder_Handler,
		},
		{
			MethodName: "ListOrder",
			Handler:    _ShopInterface_ListOrder_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "v1/shop_interface.proto",
}

ShopInterface_ServiceDesc is the grpc.ServiceDesc for ShopInterface 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 ErrorUsernameConflict

func ErrorUsernameConflict(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 IsUsernameConflict

func IsUsernameConflict(err error) bool

func RegisterShopInterfaceHTTPServer

func RegisterShopInterfaceHTTPServer(s *http.Server, srv ShopInterfaceHTTPServer)

func RegisterShopInterfaceServer

func RegisterShopInterfaceServer(s grpc.ServiceRegistrar, srv ShopInterfaceServer)

Types

type AddCartItemReply

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

func (*AddCartItemReply) Descriptor deprecated

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

Deprecated: Use AddCartItemReply.ProtoReflect.Descriptor instead.

func (*AddCartItemReply) ProtoMessage

func (*AddCartItemReply) ProtoMessage()

func (*AddCartItemReply) ProtoReflect

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

func (*AddCartItemReply) Reset

func (x *AddCartItemReply) Reset()

func (*AddCartItemReply) String

func (x *AddCartItemReply) String() string

type AddCartItemReq

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

func (*AddCartItemReq) Descriptor deprecated

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

Deprecated: Use AddCartItemReq.ProtoReflect.Descriptor instead.

func (*AddCartItemReq) ProtoMessage

func (*AddCartItemReq) ProtoMessage()

func (*AddCartItemReq) ProtoReflect

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

func (*AddCartItemReq) Reset

func (x *AddCartItemReq) Reset()

func (*AddCartItemReq) String

func (x *AddCartItemReq) String() string

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"`
	Country  string `protobuf:"bytes,4,opt,name=country,proto3" json:"country,omitempty"`
	City     string `protobuf:"bytes,5,opt,name=city,proto3" json:"city,omitempty"`
	Address  string `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"`
	PostCode string `protobuf:"bytes,7,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) GetCity

func (x *CreateAddressReply) GetCity() string

func (*CreateAddressReply) GetCountry

func (x *CreateAddressReply) GetCountry() 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"`
	Country  string `protobuf:"bytes,4,opt,name=country,proto3" json:"country,omitempty"`
	City     string `protobuf:"bytes,5,opt,name=city,proto3" json:"city,omitempty"`
	Address  string `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"`
	PostCode string `protobuf:"bytes,7,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) GetCity

func (x *CreateAddressReq) GetCity() string

func (*CreateAddressReq) GetCountry

func (x *CreateAddressReq) GetCountry() 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"`
	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 (*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) 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 CreateOrderReply

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

func (*CreateOrderReply) Descriptor deprecated

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

Deprecated: Use CreateOrderReply.ProtoReflect.Descriptor instead.

func (*CreateOrderReply) ProtoMessage

func (*CreateOrderReply) ProtoMessage()

func (*CreateOrderReply) ProtoReflect

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

func (*CreateOrderReply) Reset

func (x *CreateOrderReply) Reset()

func (*CreateOrderReply) String

func (x *CreateOrderReply) String() string

type CreateOrderReq

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

func (*CreateOrderReq) Descriptor deprecated

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

Deprecated: Use CreateOrderReq.ProtoReflect.Descriptor instead.

func (*CreateOrderReq) ProtoMessage

func (*CreateOrderReq) ProtoMessage()

func (*CreateOrderReq) ProtoReflect

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

func (*CreateOrderReq) Reset

func (x *CreateOrderReq) Reset()

func (*CreateOrderReq) String

func (x *CreateOrderReq) 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 {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteCardReq) Descriptor deprecated

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

Deprecated: Use DeleteCardReq.ProtoReflect.Descriptor instead.

func (*DeleteCardReq) GetId

func (x *DeleteCardReq) GetId() 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"`
	Country  string `protobuf:"bytes,4,opt,name=country,proto3" json:"country,omitempty"`
	City     string `protobuf:"bytes,5,opt,name=city,proto3" json:"city,omitempty"`
	Address  string `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"`
	PostCode string `protobuf:"bytes,7,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) GetCity

func (x *GetAddressReply) GetCity() string

func (*GetAddressReply) GetCountry

func (x *GetAddressReply) GetCountry() 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 GetBeerReply

type GetBeerReply 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"`
	Description string                `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Count       int64                 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
	Image       []*GetBeerReply_Image `protobuf:"bytes,5,rep,name=image,proto3" json:"image,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBeerReply) Descriptor deprecated

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

Deprecated: Use GetBeerReply.ProtoReflect.Descriptor instead.

func (*GetBeerReply) GetCount

func (x *GetBeerReply) GetCount() int64

func (*GetBeerReply) GetDescription

func (x *GetBeerReply) GetDescription() string

func (*GetBeerReply) GetId

func (x *GetBeerReply) GetId() int64

func (*GetBeerReply) GetImage

func (x *GetBeerReply) GetImage() []*GetBeerReply_Image

func (*GetBeerReply) GetName

func (x *GetBeerReply) GetName() string

func (*GetBeerReply) ProtoMessage

func (*GetBeerReply) ProtoMessage()

func (*GetBeerReply) ProtoReflect

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

func (*GetBeerReply) Reset

func (x *GetBeerReply) Reset()

func (*GetBeerReply) String

func (x *GetBeerReply) String() string

type GetBeerReply_Image

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

func (*GetBeerReply_Image) Descriptor deprecated

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

Deprecated: Use GetBeerReply_Image.ProtoReflect.Descriptor instead.

func (*GetBeerReply_Image) GetUrl

func (x *GetBeerReply_Image) GetUrl() string

func (*GetBeerReply_Image) ProtoMessage

func (*GetBeerReply_Image) ProtoMessage()

func (*GetBeerReply_Image) ProtoReflect

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

func (*GetBeerReply_Image) Reset

func (x *GetBeerReply_Image) Reset()

func (*GetBeerReply_Image) String

func (x *GetBeerReply_Image) String() string

type GetBeerReq

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

func (*GetBeerReq) Descriptor deprecated

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

Deprecated: Use GetBeerReq.ProtoReflect.Descriptor instead.

func (*GetBeerReq) GetId

func (x *GetBeerReq) GetId() int64

func (*GetBeerReq) ProtoMessage

func (*GetBeerReq) ProtoMessage()

func (*GetBeerReq) ProtoReflect

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

func (*GetBeerReq) Reset

func (x *GetBeerReq) Reset()

func (*GetBeerReq) String

func (x *GetBeerReq) 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 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 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 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"`
	Country  string `protobuf:"bytes,4,opt,name=country,proto3" json:"country,omitempty"`
	City     string `protobuf:"bytes,5,opt,name=city,proto3" json:"city,omitempty"`
	Address  string `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"`
	PostCode string `protobuf:"bytes,7,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) GetCity

func (x *ListAddressReply_Address) GetCity() string

func (*ListAddressReply_Address) GetCountry

func (x *ListAddressReply_Address) GetCountry() 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 ListBeerReply

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

func (*ListBeerReply) Descriptor deprecated

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

Deprecated: Use ListBeerReply.ProtoReflect.Descriptor instead.

func (*ListBeerReply) GetResults

func (x *ListBeerReply) GetResults() []*ListBeerReply_Beer

func (*ListBeerReply) ProtoMessage

func (*ListBeerReply) ProtoMessage()

func (*ListBeerReply) ProtoReflect

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

func (*ListBeerReply) Reset

func (x *ListBeerReply) Reset()

func (*ListBeerReply) String

func (x *ListBeerReply) String() string

type ListBeerReply_Beer

type ListBeerReply_Beer 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"`
	Description string                      `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Count       int64                       `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
	Image       []*ListBeerReply_Beer_Image `protobuf:"bytes,5,rep,name=image,proto3" json:"image,omitempty"`
	// contains filtered or unexported fields
}

func (*ListBeerReply_Beer) Descriptor deprecated

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

Deprecated: Use ListBeerReply_Beer.ProtoReflect.Descriptor instead.

func (*ListBeerReply_Beer) GetCount

func (x *ListBeerReply_Beer) GetCount() int64

func (*ListBeerReply_Beer) GetDescription

func (x *ListBeerReply_Beer) GetDescription() string

func (*ListBeerReply_Beer) GetId

func (x *ListBeerReply_Beer) GetId() int64

func (*ListBeerReply_Beer) GetImage

func (*ListBeerReply_Beer) GetName

func (x *ListBeerReply_Beer) GetName() string

func (*ListBeerReply_Beer) ProtoMessage

func (*ListBeerReply_Beer) ProtoMessage()

func (*ListBeerReply_Beer) ProtoReflect

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

func (*ListBeerReply_Beer) Reset

func (x *ListBeerReply_Beer) Reset()

func (*ListBeerReply_Beer) String

func (x *ListBeerReply_Beer) String() string

type ListBeerReply_Beer_Image

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

func (*ListBeerReply_Beer_Image) Descriptor deprecated

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

Deprecated: Use ListBeerReply_Beer_Image.ProtoReflect.Descriptor instead.

func (*ListBeerReply_Beer_Image) GetUrl

func (x *ListBeerReply_Beer_Image) GetUrl() string

func (*ListBeerReply_Beer_Image) ProtoMessage

func (*ListBeerReply_Beer_Image) ProtoMessage()

func (*ListBeerReply_Beer_Image) ProtoReflect

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

func (*ListBeerReply_Beer_Image) Reset

func (x *ListBeerReply_Beer_Image) Reset()

func (*ListBeerReply_Beer_Image) String

func (x *ListBeerReply_Beer_Image) String() string

type ListBeerReq

type ListBeerReq struct {
	PageNum  int64 `protobuf:"varint,1,opt,name=page_num,json=pageNum,proto3" json:"page_num,omitempty"`
	PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// contains filtered or unexported fields
}

func (*ListBeerReq) Descriptor deprecated

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

Deprecated: Use ListBeerReq.ProtoReflect.Descriptor instead.

func (*ListBeerReq) GetPageNum

func (x *ListBeerReq) GetPageNum() int64

func (*ListBeerReq) GetPageSize

func (x *ListBeerReq) GetPageSize() int64

func (*ListBeerReq) ProtoMessage

func (*ListBeerReq) ProtoMessage()

func (*ListBeerReq) ProtoReflect

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

func (*ListBeerReq) Reset

func (x *ListBeerReq) Reset()

func (*ListBeerReq) String

func (x *ListBeerReq) 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 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 ListCartItemReply

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

func (*ListCartItemReply) Descriptor deprecated

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

Deprecated: Use ListCartItemReply.ProtoReflect.Descriptor instead.

func (*ListCartItemReply) ProtoMessage

func (*ListCartItemReply) ProtoMessage()

func (*ListCartItemReply) ProtoReflect

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

func (*ListCartItemReply) Reset

func (x *ListCartItemReply) Reset()

func (*ListCartItemReply) String

func (x *ListCartItemReply) String() string

type ListCartItemReq

type ListCartItemReq struct {
	PageNum  int64 `protobuf:"varint,1,opt,name=page_num,json=pageNum,proto3" json:"page_num,omitempty"`
	PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCartItemReq) Descriptor deprecated

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

Deprecated: Use ListCartItemReq.ProtoReflect.Descriptor instead.

func (*ListCartItemReq) GetPageNum

func (x *ListCartItemReq) GetPageNum() int64

func (*ListCartItemReq) GetPageSize

func (x *ListCartItemReq) GetPageSize() int64

func (*ListCartItemReq) ProtoMessage

func (*ListCartItemReq) ProtoMessage()

func (*ListCartItemReq) ProtoReflect

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

func (*ListCartItemReq) Reset

func (x *ListCartItemReq) Reset()

func (*ListCartItemReq) String

func (x *ListCartItemReq) String() string

type ListOrderReply

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

func (*ListOrderReply) Descriptor deprecated

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

Deprecated: Use ListOrderReply.ProtoReflect.Descriptor instead.

func (*ListOrderReply) ProtoMessage

func (*ListOrderReply) ProtoMessage()

func (*ListOrderReply) ProtoReflect

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

func (*ListOrderReply) Reset

func (x *ListOrderReply) Reset()

func (*ListOrderReply) String

func (x *ListOrderReply) String() string

type ListOrderReq

type ListOrderReq struct {
	PageNum  int64 `protobuf:"varint,1,opt,name=page_num,json=pageNum,proto3" json:"page_num,omitempty"`
	PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// contains filtered or unexported fields
}

func (*ListOrderReq) Descriptor deprecated

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

Deprecated: Use ListOrderReq.ProtoReflect.Descriptor instead.

func (*ListOrderReq) GetPageNum

func (x *ListOrderReq) GetPageNum() int64

func (*ListOrderReq) GetPageSize

func (x *ListOrderReq) GetPageSize() int64

func (*ListOrderReq) ProtoMessage

func (*ListOrderReq) ProtoMessage()

func (*ListOrderReq) ProtoReflect

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

func (*ListOrderReq) Reset

func (x *ListOrderReq) Reset()

func (*ListOrderReq) String

func (x *ListOrderReq) String() string

type LoginReply

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

func (*LoginReply) Descriptor deprecated

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

Deprecated: Use LoginReply.ProtoReflect.Descriptor instead.

func (*LoginReply) GetToken

func (x *LoginReply) GetToken() string

func (*LoginReply) ProtoMessage

func (*LoginReply) ProtoMessage()

func (*LoginReply) ProtoReflect

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

func (*LoginReply) Reset

func (x *LoginReply) Reset()

func (*LoginReply) String

func (x *LoginReply) String() string

type LoginReq

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

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

Deprecated: Use LoginReq.ProtoReflect.Descriptor instead.

func (*LoginReq) GetPassword

func (x *LoginReq) GetPassword() string

func (*LoginReq) GetUsername

func (x *LoginReq) GetUsername() string

func (*LoginReq) ProtoMessage

func (*LoginReq) ProtoMessage()

func (*LoginReq) ProtoReflect

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

func (*LoginReq) Reset

func (x *LoginReq) Reset()

func (*LoginReq) String

func (x *LoginReq) String() string

type LogoutReply

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

func (*LogoutReply) Descriptor deprecated

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

Deprecated: Use LogoutReply.ProtoReflect.Descriptor instead.

func (*LogoutReply) ProtoMessage

func (*LogoutReply) ProtoMessage()

func (*LogoutReply) ProtoReflect

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

func (*LogoutReply) Reset

func (x *LogoutReply) Reset()

func (*LogoutReply) String

func (x *LogoutReply) String() string

type LogoutReq

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

func (*LogoutReq) Descriptor deprecated

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

Deprecated: Use LogoutReq.ProtoReflect.Descriptor instead.

func (*LogoutReq) ProtoMessage

func (*LogoutReq) ProtoMessage()

func (*LogoutReq) ProtoReflect

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

func (*LogoutReq) Reset

func (x *LogoutReq) Reset()

func (*LogoutReq) String

func (x *LogoutReq) String() string

type RegisterReply

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

func (*RegisterReply) Descriptor deprecated

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

Deprecated: Use RegisterReply.ProtoReflect.Descriptor instead.

func (*RegisterReply) GetId

func (x *RegisterReply) GetId() int64

func (*RegisterReply) ProtoMessage

func (*RegisterReply) ProtoMessage()

func (*RegisterReply) ProtoReflect

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

func (*RegisterReply) Reset

func (x *RegisterReply) Reset()

func (*RegisterReply) String

func (x *RegisterReply) String() string

type RegisterReq

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

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

Deprecated: Use RegisterReq.ProtoReflect.Descriptor instead.

func (*RegisterReq) GetPassword

func (x *RegisterReq) GetPassword() string

func (*RegisterReq) GetUsername

func (x *RegisterReq) GetUsername() string

func (*RegisterReq) ProtoMessage

func (*RegisterReq) ProtoMessage()

func (*RegisterReq) ProtoReflect

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

func (*RegisterReq) Reset

func (x *RegisterReq) Reset()

func (*RegisterReq) String

func (x *RegisterReq) String() string

type ShopInterfaceClient

type ShopInterfaceClient interface {
	Register(ctx context.Context, in *RegisterReq, opts ...grpc.CallOption) (*RegisterReply, error)
	Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginReply, error)
	Logout(ctx context.Context, in *LogoutReq, opts ...grpc.CallOption) (*LogoutReply, 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)
	ListBeer(ctx context.Context, in *ListBeerReq, opts ...grpc.CallOption) (*ListBeerReply, error)
	GetBeer(ctx context.Context, in *GetBeerReq, opts ...grpc.CallOption) (*GetBeerReply, error)
	ListCartItem(ctx context.Context, in *ListCartItemReq, opts ...grpc.CallOption) (*ListCartItemReply, error)
	AddCartItem(ctx context.Context, in *AddCartItemReq, opts ...grpc.CallOption) (*AddCartItemReply, error)
	CreateOrder(ctx context.Context, in *CreateOrderReq, opts ...grpc.CallOption) (*CreateOrderReply, error)
	ListOrder(ctx context.Context, in *ListOrderReq, opts ...grpc.CallOption) (*ListOrderReply, error)
}

ShopInterfaceClient is the client API for ShopInterface 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.

type ShopInterfaceErrorReason

type ShopInterfaceErrorReason int32
const (
	ShopInterfaceErrorReason_UNKNOWN_ERROR     ShopInterfaceErrorReason = 0
	ShopInterfaceErrorReason_LOGIN_FAILED      ShopInterfaceErrorReason = 1
	ShopInterfaceErrorReason_USERNAME_CONFLICT ShopInterfaceErrorReason = 2
	ShopInterfaceErrorReason_REGISTER_FAILED   ShopInterfaceErrorReason = 3
)

func (ShopInterfaceErrorReason) Descriptor

func (ShopInterfaceErrorReason) Enum

func (ShopInterfaceErrorReason) EnumDescriptor deprecated

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

Deprecated: Use ShopInterfaceErrorReason.Descriptor instead.

func (ShopInterfaceErrorReason) Number

func (ShopInterfaceErrorReason) String

func (x ShopInterfaceErrorReason) String() string

func (ShopInterfaceErrorReason) Type

type ShopInterfaceHTTPClient

type ShopInterfaceHTTPClient interface {
	AddCartItem(ctx context.Context, req *AddCartItemReq, opts ...http.CallOption) (rsp *AddCartItemReply, err error)
	CreateAddress(ctx context.Context, req *CreateAddressReq, opts ...http.CallOption) (rsp *CreateAddressReply, err error)
	CreateCard(ctx context.Context, req *CreateCardReq, opts ...http.CallOption) (rsp *CreateCardReply, err error)
	CreateOrder(ctx context.Context, req *CreateOrderReq, opts ...http.CallOption) (rsp *CreateOrderReply, err error)
	DeleteCard(ctx context.Context, req *DeleteCardReq, opts ...http.CallOption) (rsp *DeleteCardReply, err error)
	GetAddress(ctx context.Context, req *GetAddressReq, opts ...http.CallOption) (rsp *GetAddressReply, err error)
	GetBeer(ctx context.Context, req *GetBeerReq, opts ...http.CallOption) (rsp *GetBeerReply, err error)
	GetCard(ctx context.Context, req *GetCardReq, opts ...http.CallOption) (rsp *GetCardReply, err error)
	ListAddress(ctx context.Context, req *ListAddressReq, opts ...http.CallOption) (rsp *ListAddressReply, err error)
	ListBeer(ctx context.Context, req *ListBeerReq, opts ...http.CallOption) (rsp *ListBeerReply, err error)
	ListCard(ctx context.Context, req *ListCardReq, opts ...http.CallOption) (rsp *ListCardReply, err error)
	ListCartItem(ctx context.Context, req *ListCartItemReq, opts ...http.CallOption) (rsp *ListCartItemReply, err error)
	ListOrder(ctx context.Context, req *ListOrderReq, opts ...http.CallOption) (rsp *ListOrderReply, err error)
	Login(ctx context.Context, req *LoginReq, opts ...http.CallOption) (rsp *LoginReply, err error)
	Logout(ctx context.Context, req *LogoutReq, opts ...http.CallOption) (rsp *LogoutReply, err error)
	Register(ctx context.Context, req *RegisterReq, opts ...http.CallOption) (rsp *RegisterReply, err error)
}

func NewShopInterfaceHTTPClient

func NewShopInterfaceHTTPClient(client *http.Client) ShopInterfaceHTTPClient

type ShopInterfaceHTTPClientImpl

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

func (*ShopInterfaceHTTPClientImpl) AddCartItem

func (*ShopInterfaceHTTPClientImpl) CreateAddress

func (*ShopInterfaceHTTPClientImpl) CreateCard

func (*ShopInterfaceHTTPClientImpl) CreateOrder

func (*ShopInterfaceHTTPClientImpl) DeleteCard

func (*ShopInterfaceHTTPClientImpl) GetAddress

func (*ShopInterfaceHTTPClientImpl) GetBeer

func (*ShopInterfaceHTTPClientImpl) GetCard

func (*ShopInterfaceHTTPClientImpl) ListAddress

func (*ShopInterfaceHTTPClientImpl) ListBeer

func (*ShopInterfaceHTTPClientImpl) ListCard

func (*ShopInterfaceHTTPClientImpl) ListCartItem

func (*ShopInterfaceHTTPClientImpl) ListOrder

func (*ShopInterfaceHTTPClientImpl) Login

func (*ShopInterfaceHTTPClientImpl) Logout

func (*ShopInterfaceHTTPClientImpl) Register

type ShopInterfaceServer

ShopInterfaceServer is the server API for ShopInterface service. All implementations must embed UnimplementedShopInterfaceServer for forward compatibility

type UnimplementedShopInterfaceServer

type UnimplementedShopInterfaceServer struct {
}

UnimplementedShopInterfaceServer must be embedded to have forward compatible implementations.

func (UnimplementedShopInterfaceServer) AddCartItem

func (UnimplementedShopInterfaceServer) CreateAddress

func (UnimplementedShopInterfaceServer) CreateCard

func (UnimplementedShopInterfaceServer) CreateOrder

func (UnimplementedShopInterfaceServer) DeleteCard

func (UnimplementedShopInterfaceServer) GetAddress

func (UnimplementedShopInterfaceServer) GetBeer

func (UnimplementedShopInterfaceServer) GetCard

func (UnimplementedShopInterfaceServer) ListAddress

func (UnimplementedShopInterfaceServer) ListBeer

func (UnimplementedShopInterfaceServer) ListCard

func (UnimplementedShopInterfaceServer) ListCartItem

func (UnimplementedShopInterfaceServer) ListOrder

func (UnimplementedShopInterfaceServer) Login

func (UnimplementedShopInterfaceServer) Logout

func (UnimplementedShopInterfaceServer) Register

type UnsafeShopInterfaceServer

type UnsafeShopInterfaceServer interface {
	// contains filtered or unexported methods
}

UnsafeShopInterfaceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ShopInterfaceServer will result in compilation errors.

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