Documentation ¶
Index ¶
- Variables
- func ErrorUnknownError(format string, args ...interface{}) *errors.Error
- func IsUnknownError(err error) bool
- func RegisterShopAdminHTTPServer(s *http.Server, srv ShopAdminHTTPServer)
- func RegisterShopAdminServer(s grpc.ServiceRegistrar, srv ShopAdminServer)
- type AddCartItemReply
- type AddCartItemReq
- type CreateAddressReply
- func (*CreateAddressReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAddressReply) GetAddress() string
- func (x *CreateAddressReply) GetCity() string
- func (x *CreateAddressReply) GetCountry() string
- func (x *CreateAddressReply) GetId() int64
- func (x *CreateAddressReply) GetMobile() string
- func (x *CreateAddressReply) GetName() string
- func (x *CreateAddressReply) GetPostCode() string
- func (*CreateAddressReply) ProtoMessage()
- func (x *CreateAddressReply) ProtoReflect() protoreflect.Message
- func (x *CreateAddressReply) Reset()
- func (x *CreateAddressReply) String() string
- type CreateAddressReq
- func (*CreateAddressReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAddressReq) GetAddress() string
- func (x *CreateAddressReq) GetCity() string
- func (x *CreateAddressReq) GetCountry() string
- func (x *CreateAddressReq) GetMobile() string
- func (x *CreateAddressReq) GetName() string
- func (x *CreateAddressReq) GetPostCode() string
- func (x *CreateAddressReq) GetUid() int64
- func (*CreateAddressReq) ProtoMessage()
- func (x *CreateAddressReq) ProtoReflect() protoreflect.Message
- func (x *CreateAddressReq) Reset()
- func (x *CreateAddressReq) String() string
- type CreateBeerReply
- type CreateBeerReq
- func (*CreateBeerReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateBeerReq) GetCount() int64
- func (x *CreateBeerReq) GetDescription() string
- func (x *CreateBeerReq) GetImage() []*CreateBeerReq_Image
- func (x *CreateBeerReq) GetName() string
- func (*CreateBeerReq) ProtoMessage()
- func (x *CreateBeerReq) ProtoReflect() protoreflect.Message
- func (x *CreateBeerReq) Reset()
- func (x *CreateBeerReq) String() string
- type CreateBeerReq_Image
- func (*CreateBeerReq_Image) Descriptor() ([]byte, []int)deprecated
- func (x *CreateBeerReq_Image) GetUrl() string
- func (*CreateBeerReq_Image) ProtoMessage()
- func (x *CreateBeerReq_Image) ProtoReflect() protoreflect.Message
- func (x *CreateBeerReq_Image) Reset()
- func (x *CreateBeerReq_Image) String() string
- type CreateCardReply
- type CreateCardReq
- func (*CreateCardReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCardReq) GetCardNo() string
- func (x *CreateCardReq) GetCcv() string
- func (x *CreateCardReq) GetExpires() string
- func (x *CreateCardReq) GetUid() int64
- func (*CreateCardReq) ProtoMessage()
- func (x *CreateCardReq) ProtoReflect() protoreflect.Message
- func (x *CreateCardReq) Reset()
- func (x *CreateCardReq) String() string
- type CreateOrderReply
- type CreateOrderReq
- type CreateUserReply
- func (*CreateUserReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserReply) GetId() int64
- func (x *CreateUserReply) GetUsername() string
- func (*CreateUserReply) ProtoMessage()
- func (x *CreateUserReply) ProtoReflect() protoreflect.Message
- func (x *CreateUserReply) Reset()
- func (x *CreateUserReply) String() string
- type CreateUserReq
- func (*CreateUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserReq) GetPassword() string
- func (x *CreateUserReq) GetUsername() string
- func (*CreateUserReq) ProtoMessage()
- func (x *CreateUserReq) ProtoReflect() protoreflect.Message
- func (x *CreateUserReq) Reset()
- func (x *CreateUserReq) String() string
- type DeleteBeerReply
- type DeleteBeerReq
- type DeleteCardReply
- type DeleteCardReq
- type GetAddressReply
- func (*GetAddressReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetAddressReply) GetAddress() string
- func (x *GetAddressReply) GetCity() string
- func (x *GetAddressReply) GetCountry() string
- func (x *GetAddressReply) GetId() int64
- func (x *GetAddressReply) GetMobile() string
- func (x *GetAddressReply) GetName() string
- func (x *GetAddressReply) GetPostCode() string
- func (*GetAddressReply) ProtoMessage()
- func (x *GetAddressReply) ProtoReflect() protoreflect.Message
- func (x *GetAddressReply) Reset()
- func (x *GetAddressReply) String() string
- type GetAddressReq
- type GetBeerReply
- func (*GetBeerReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetBeerReply) GetCount() int64
- func (x *GetBeerReply) GetDescription() string
- func (x *GetBeerReply) GetId() int64
- func (x *GetBeerReply) GetImage() []*GetBeerReply_Image
- func (x *GetBeerReply) GetName() string
- func (*GetBeerReply) ProtoMessage()
- func (x *GetBeerReply) ProtoReflect() protoreflect.Message
- func (x *GetBeerReply) Reset()
- func (x *GetBeerReply) String() string
- type GetBeerReply_Image
- type GetBeerReq
- type GetCardReply
- func (*GetCardReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetCardReply) GetCardNo() string
- func (x *GetCardReply) GetCcv() string
- func (x *GetCardReply) GetExpires() string
- func (x *GetCardReply) GetId() int64
- func (*GetCardReply) ProtoMessage()
- func (x *GetCardReply) ProtoReflect() protoreflect.Message
- func (x *GetCardReply) Reset()
- func (x *GetCardReply) String() string
- type GetCardReq
- type GetOrderReply
- type GetOrderReq
- type GetUserReply
- func (*GetUserReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserReply) GetId() int64
- func (x *GetUserReply) GetUsername() string
- func (*GetUserReply) ProtoMessage()
- func (x *GetUserReply) ProtoReflect() protoreflect.Message
- func (x *GetUserReply) Reset()
- func (x *GetUserReply) String() string
- type GetUserReq
- type ListAddressReply
- func (*ListAddressReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListAddressReply) GetResults() []*ListAddressReply_Address
- func (*ListAddressReply) ProtoMessage()
- func (x *ListAddressReply) ProtoReflect() protoreflect.Message
- func (x *ListAddressReply) Reset()
- func (x *ListAddressReply) String() string
- type ListAddressReply_Address
- func (*ListAddressReply_Address) Descriptor() ([]byte, []int)deprecated
- func (x *ListAddressReply_Address) GetAddress() string
- func (x *ListAddressReply_Address) GetCity() string
- func (x *ListAddressReply_Address) GetCountry() string
- func (x *ListAddressReply_Address) GetId() int64
- func (x *ListAddressReply_Address) GetMobile() string
- func (x *ListAddressReply_Address) GetName() string
- func (x *ListAddressReply_Address) GetPostCode() string
- func (*ListAddressReply_Address) ProtoMessage()
- func (x *ListAddressReply_Address) ProtoReflect() protoreflect.Message
- func (x *ListAddressReply_Address) Reset()
- func (x *ListAddressReply_Address) String() string
- type ListAddressReq
- type ListBeerReply
- type ListBeerReply_Beer
- func (*ListBeerReply_Beer) Descriptor() ([]byte, []int)deprecated
- func (x *ListBeerReply_Beer) GetCount() int64
- func (x *ListBeerReply_Beer) GetDescription() string
- func (x *ListBeerReply_Beer) GetId() int64
- func (x *ListBeerReply_Beer) GetImage() []*ListBeerReply_Beer_Image
- func (x *ListBeerReply_Beer) GetName() string
- func (*ListBeerReply_Beer) ProtoMessage()
- func (x *ListBeerReply_Beer) ProtoReflect() protoreflect.Message
- func (x *ListBeerReply_Beer) Reset()
- func (x *ListBeerReply_Beer) String() string
- type ListBeerReply_Beer_Image
- func (*ListBeerReply_Beer_Image) Descriptor() ([]byte, []int)deprecated
- func (x *ListBeerReply_Beer_Image) GetUrl() string
- func (*ListBeerReply_Beer_Image) ProtoMessage()
- func (x *ListBeerReply_Beer_Image) ProtoReflect() protoreflect.Message
- func (x *ListBeerReply_Beer_Image) Reset()
- func (x *ListBeerReply_Beer_Image) String() string
- type ListBeerReq
- func (*ListBeerReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListBeerReq) GetPageNum() int64
- func (x *ListBeerReq) GetPageSize() int64
- func (*ListBeerReq) ProtoMessage()
- func (x *ListBeerReq) ProtoReflect() protoreflect.Message
- func (x *ListBeerReq) Reset()
- func (x *ListBeerReq) String() string
- type ListCardReply
- type ListCardReply_Card
- func (*ListCardReply_Card) Descriptor() ([]byte, []int)deprecated
- func (x *ListCardReply_Card) GetCardNo() string
- func (x *ListCardReply_Card) GetCcv() string
- func (x *ListCardReply_Card) GetExpires() string
- func (x *ListCardReply_Card) GetId() int64
- func (*ListCardReply_Card) ProtoMessage()
- func (x *ListCardReply_Card) ProtoReflect() protoreflect.Message
- func (x *ListCardReply_Card) Reset()
- func (x *ListCardReply_Card) String() string
- type ListCardReq
- type ListCartItemReply
- type ListCartItemReq
- func (*ListCartItemReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListCartItemReq) GetPageNum() int64
- func (x *ListCartItemReq) GetPageSize() int64
- func (*ListCartItemReq) ProtoMessage()
- func (x *ListCartItemReq) ProtoReflect() protoreflect.Message
- func (x *ListCartItemReq) Reset()
- func (x *ListCartItemReq) String() string
- type ListOrderReply
- type ListOrderReq
- func (*ListOrderReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListOrderReq) GetPageNum() int64
- func (x *ListOrderReq) GetPageSize() int64
- func (*ListOrderReq) ProtoMessage()
- func (x *ListOrderReq) ProtoReflect() protoreflect.Message
- func (x *ListOrderReq) Reset()
- func (x *ListOrderReq) String() string
- type ListUserReply
- type ListUserReq
- type LoginReply
- type LoginReq
- type LogoutReply
- type LogoutReq
- type RegisterReply
- type RegisterReq
- func (*RegisterReq) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterReq) GetPassword() string
- func (x *RegisterReq) GetUsername() string
- func (*RegisterReq) ProtoMessage()
- func (x *RegisterReq) ProtoReflect() protoreflect.Message
- func (x *RegisterReq) Reset()
- func (x *RegisterReq) String() string
- type ShopAdminClient
- type ShopAdminErrorReason
- func (ShopAdminErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x ShopAdminErrorReason) Enum() *ShopAdminErrorReason
- func (ShopAdminErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x ShopAdminErrorReason) Number() protoreflect.EnumNumber
- func (x ShopAdminErrorReason) String() string
- func (ShopAdminErrorReason) Type() protoreflect.EnumType
- type ShopAdminHTTPClient
- type ShopAdminHTTPClientImpl
- func (c *ShopAdminHTTPClientImpl) CreateBeer(ctx context.Context, in *CreateBeerReq, opts ...http.CallOption) (*CreateBeerReply, error)
- func (c *ShopAdminHTTPClientImpl) DeleteBeer(ctx context.Context, in *DeleteBeerReq, opts ...http.CallOption) (*DeleteBeerReply, error)
- func (c *ShopAdminHTTPClientImpl) GetOrder(ctx context.Context, in *GetOrderReq, opts ...http.CallOption) (*GetOrderReply, error)
- func (c *ShopAdminHTTPClientImpl) GetUser(ctx context.Context, in *GetUserReq, opts ...http.CallOption) (*GetUserReply, error)
- func (c *ShopAdminHTTPClientImpl) ListBeer(ctx context.Context, in *ListBeerReq, opts ...http.CallOption) (*ListBeerReply, error)
- func (c *ShopAdminHTTPClientImpl) ListOrder(ctx context.Context, in *ListOrderReq, opts ...http.CallOption) (*ListOrderReply, error)
- func (c *ShopAdminHTTPClientImpl) ListUser(ctx context.Context, in *ListUserReq, opts ...http.CallOption) (*ListUserReply, error)
- func (c *ShopAdminHTTPClientImpl) Login(ctx context.Context, in *LoginReq, opts ...http.CallOption) (*LoginReply, error)
- func (c *ShopAdminHTTPClientImpl) Logout(ctx context.Context, in *LogoutReq, opts ...http.CallOption) (*LogoutReply, error)
- func (c *ShopAdminHTTPClientImpl) UpdateBeer(ctx context.Context, in *UpdateBeerReq, opts ...http.CallOption) (*UpdateBeerReply, error)
- type ShopAdminHTTPServer
- type ShopAdminServer
- type UnimplementedShopAdminServer
- func (UnimplementedShopAdminServer) CreateBeer(context.Context, *CreateBeerReq) (*CreateBeerReply, error)
- func (UnimplementedShopAdminServer) DeleteBeer(context.Context, *DeleteBeerReq) (*DeleteBeerReply, error)
- func (UnimplementedShopAdminServer) GetOrder(context.Context, *GetOrderReq) (*GetOrderReply, error)
- func (UnimplementedShopAdminServer) GetUser(context.Context, *GetUserReq) (*GetUserReply, error)
- func (UnimplementedShopAdminServer) ListBeer(context.Context, *ListBeerReq) (*ListBeerReply, error)
- func (UnimplementedShopAdminServer) ListOrder(context.Context, *ListOrderReq) (*ListOrderReply, error)
- func (UnimplementedShopAdminServer) ListUser(context.Context, *ListUserReq) (*ListUserReply, error)
- func (UnimplementedShopAdminServer) Login(context.Context, *LoginReq) (*LoginReply, error)
- func (UnimplementedShopAdminServer) Logout(context.Context, *LogoutReq) (*LogoutReply, error)
- func (UnimplementedShopAdminServer) UpdateBeer(context.Context, *UpdateBeerReq) (*UpdateBeerReply, error)
- type UnsafeShopAdminServer
- type UpdateBeerReply
- type UpdateBeerReq
- func (*UpdateBeerReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateBeerReq) GetCount() int64
- func (x *UpdateBeerReq) GetDescription() string
- func (x *UpdateBeerReq) GetId() int64
- func (x *UpdateBeerReq) GetImage() []*UpdateBeerReq_Image
- func (x *UpdateBeerReq) GetName() string
- func (*UpdateBeerReq) ProtoMessage()
- func (x *UpdateBeerReq) ProtoReflect() protoreflect.Message
- func (x *UpdateBeerReq) Reset()
- func (x *UpdateBeerReq) String() string
- type UpdateBeerReq_Image
- func (*UpdateBeerReq_Image) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateBeerReq_Image) GetUrl() string
- func (*UpdateBeerReq_Image) ProtoMessage()
- func (x *UpdateBeerReq_Image) ProtoReflect() protoreflect.Message
- func (x *UpdateBeerReq_Image) Reset()
- func (x *UpdateBeerReq_Image) String() string
- type VerifyPasswordReply
- func (*VerifyPasswordReply) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyPasswordReply) GetId() int64
- func (x *VerifyPasswordReply) GetOk() bool
- func (*VerifyPasswordReply) ProtoMessage()
- func (x *VerifyPasswordReply) ProtoReflect() protoreflect.Message
- func (x *VerifyPasswordReply) Reset()
- func (x *VerifyPasswordReply) String() string
- type VerifyPasswordReq
- func (*VerifyPasswordReq) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyPasswordReq) GetPassword() string
- func (x *VerifyPasswordReq) GetUsername() string
- func (*VerifyPasswordReq) ProtoMessage()
- func (x *VerifyPasswordReq) ProtoReflect() protoreflect.Message
- func (x *VerifyPasswordReq) Reset()
- func (x *VerifyPasswordReq) String() string
Constants ¶
This section is empty.
Variables ¶
var ( ShopAdminErrorReason_name = map[int32]string{ 0: "UNKNOWN_ERROR", } ShopAdminErrorReason_value = map[string]int32{ "UNKNOWN_ERROR": 0, } )
Enum value maps for ShopAdminErrorReason.
var File_v1_shop_admin_error_proto protoreflect.FileDescriptor
var File_v1_shop_admin_proto protoreflect.FileDescriptor
var ShopAdmin_ServiceDesc = grpc.ServiceDesc{ ServiceName: "shop.admin.v1.ShopAdmin", HandlerType: (*ShopAdminServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Login", Handler: _ShopAdmin_Login_Handler, }, { MethodName: "Logout", Handler: _ShopAdmin_Logout_Handler, }, { MethodName: "ListBeer", Handler: _ShopAdmin_ListBeer_Handler, }, { MethodName: "CreateBeer", Handler: _ShopAdmin_CreateBeer_Handler, }, { MethodName: "UpdateBeer", Handler: _ShopAdmin_UpdateBeer_Handler, }, { MethodName: "DeleteBeer", Handler: _ShopAdmin_DeleteBeer_Handler, }, { MethodName: "ListOrder", Handler: _ShopAdmin_ListOrder_Handler, }, { MethodName: "GetOrder", Handler: _ShopAdmin_GetOrder_Handler, }, { MethodName: "ListUser", Handler: _ShopAdmin_ListUser_Handler, }, { MethodName: "GetUser", Handler: _ShopAdmin_GetUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "v1/shop_admin.proto", }
ShopAdmin_ServiceDesc is the grpc.ServiceDesc for ShopAdmin service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func ErrorUnknownError ¶
func IsUnknownError ¶
func RegisterShopAdminHTTPServer ¶
func RegisterShopAdminHTTPServer(s *http.Server, srv ShopAdminHTTPServer)
func RegisterShopAdminServer ¶
func RegisterShopAdminServer(s grpc.ServiceRegistrar, srv ShopAdminServer)
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 CreateBeerReply ¶
type CreateBeerReply struct {
// contains filtered or unexported fields
}
func (*CreateBeerReply) Descriptor
deprecated
func (*CreateBeerReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateBeerReply.ProtoReflect.Descriptor instead.
func (*CreateBeerReply) ProtoMessage ¶
func (*CreateBeerReply) ProtoMessage()
func (*CreateBeerReply) ProtoReflect ¶
func (x *CreateBeerReply) ProtoReflect() protoreflect.Message
func (*CreateBeerReply) Reset ¶
func (x *CreateBeerReply) Reset()
func (*CreateBeerReply) String ¶
func (x *CreateBeerReply) String() string
type CreateBeerReq ¶
type CreateBeerReq struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` Image []*CreateBeerReq_Image `protobuf:"bytes,4,rep,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*CreateBeerReq) Descriptor
deprecated
func (*CreateBeerReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateBeerReq.ProtoReflect.Descriptor instead.
func (*CreateBeerReq) GetCount ¶
func (x *CreateBeerReq) GetCount() int64
func (*CreateBeerReq) GetDescription ¶
func (x *CreateBeerReq) GetDescription() string
func (*CreateBeerReq) GetImage ¶
func (x *CreateBeerReq) GetImage() []*CreateBeerReq_Image
func (*CreateBeerReq) GetName ¶
func (x *CreateBeerReq) GetName() string
func (*CreateBeerReq) ProtoMessage ¶
func (*CreateBeerReq) ProtoMessage()
func (*CreateBeerReq) ProtoReflect ¶
func (x *CreateBeerReq) ProtoReflect() protoreflect.Message
func (*CreateBeerReq) Reset ¶
func (x *CreateBeerReq) Reset()
func (*CreateBeerReq) String ¶
func (x *CreateBeerReq) String() string
type CreateBeerReq_Image ¶
type CreateBeerReq_Image struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*CreateBeerReq_Image) Descriptor
deprecated
func (*CreateBeerReq_Image) Descriptor() ([]byte, []int)
Deprecated: Use CreateBeerReq_Image.ProtoReflect.Descriptor instead.
func (*CreateBeerReq_Image) GetUrl ¶
func (x *CreateBeerReq_Image) GetUrl() string
func (*CreateBeerReq_Image) ProtoMessage ¶
func (*CreateBeerReq_Image) ProtoMessage()
func (*CreateBeerReq_Image) ProtoReflect ¶
func (x *CreateBeerReq_Image) ProtoReflect() protoreflect.Message
func (*CreateBeerReq_Image) Reset ¶
func (x *CreateBeerReq_Image) Reset()
func (*CreateBeerReq_Image) String ¶
func (x *CreateBeerReq_Image) 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 DeleteBeerReply ¶
type DeleteBeerReply struct {
// contains filtered or unexported fields
}
func (*DeleteBeerReply) Descriptor
deprecated
func (*DeleteBeerReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteBeerReply.ProtoReflect.Descriptor instead.
func (*DeleteBeerReply) ProtoMessage ¶
func (*DeleteBeerReply) ProtoMessage()
func (*DeleteBeerReply) ProtoReflect ¶
func (x *DeleteBeerReply) ProtoReflect() protoreflect.Message
func (*DeleteBeerReply) Reset ¶
func (x *DeleteBeerReply) Reset()
func (*DeleteBeerReply) String ¶
func (x *DeleteBeerReply) String() string
type DeleteBeerReq ¶
type DeleteBeerReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteBeerReq) Descriptor
deprecated
func (*DeleteBeerReq) Descriptor() ([]byte, []int)
Deprecated: Use DeleteBeerReq.ProtoReflect.Descriptor instead.
func (*DeleteBeerReq) GetId ¶
func (x *DeleteBeerReq) GetId() int64
func (*DeleteBeerReq) ProtoMessage ¶
func (*DeleteBeerReq) ProtoMessage()
func (*DeleteBeerReq) ProtoReflect ¶
func (x *DeleteBeerReq) ProtoReflect() protoreflect.Message
func (*DeleteBeerReq) Reset ¶
func (x *DeleteBeerReq) Reset()
func (*DeleteBeerReq) String ¶
func (x *DeleteBeerReq) 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 GetOrderReply ¶
type GetOrderReply struct {
// contains filtered or unexported fields
}
func (*GetOrderReply) Descriptor
deprecated
func (*GetOrderReply) Descriptor() ([]byte, []int)
Deprecated: Use GetOrderReply.ProtoReflect.Descriptor instead.
func (*GetOrderReply) ProtoMessage ¶
func (*GetOrderReply) ProtoMessage()
func (*GetOrderReply) ProtoReflect ¶
func (x *GetOrderReply) ProtoReflect() protoreflect.Message
func (*GetOrderReply) Reset ¶
func (x *GetOrderReply) Reset()
func (*GetOrderReply) String ¶
func (x *GetOrderReply) String() string
type GetOrderReq ¶
type GetOrderReq struct {
// contains filtered or unexported fields
}
func (*GetOrderReq) Descriptor
deprecated
func (*GetOrderReq) Descriptor() ([]byte, []int)
Deprecated: Use GetOrderReq.ProtoReflect.Descriptor instead.
func (*GetOrderReq) ProtoMessage ¶
func (*GetOrderReq) ProtoMessage()
func (*GetOrderReq) ProtoReflect ¶
func (x *GetOrderReq) ProtoReflect() protoreflect.Message
func (*GetOrderReq) Reset ¶
func (x *GetOrderReq) Reset()
func (*GetOrderReq) String ¶
func (x *GetOrderReq) 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 (x *ListBeerReply_Beer) GetImage() []*ListBeerReply_Beer_Image
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 ListUserReply ¶
type ListUserReply struct {
// contains filtered or unexported fields
}
func (*ListUserReply) Descriptor
deprecated
func (*ListUserReply) Descriptor() ([]byte, []int)
Deprecated: Use ListUserReply.ProtoReflect.Descriptor instead.
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 ListUserReq ¶
type ListUserReq struct {
// contains filtered or unexported fields
}
func (*ListUserReq) Descriptor
deprecated
func (*ListUserReq) Descriptor() ([]byte, []int)
Deprecated: Use ListUserReq.ProtoReflect.Descriptor instead.
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 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) GetPassword ¶
func (*LoginReq) GetUsername ¶
func (*LoginReq) ProtoMessage ¶
func (*LoginReq) ProtoMessage()
func (*LoginReq) ProtoReflect ¶
func (x *LoginReq) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*LogoutReq) ProtoMessage()
func (*LogoutReq) ProtoReflect ¶
func (x *LogoutReq) ProtoReflect() protoreflect.Message
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 ShopAdminClient ¶
type ShopAdminClient interface { Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginReply, error) Logout(ctx context.Context, in *LogoutReq, opts ...grpc.CallOption) (*LogoutReply, error) ListBeer(ctx context.Context, in *ListBeerReq, opts ...grpc.CallOption) (*ListBeerReply, error) CreateBeer(ctx context.Context, in *CreateBeerReq, opts ...grpc.CallOption) (*CreateBeerReply, error) UpdateBeer(ctx context.Context, in *UpdateBeerReq, opts ...grpc.CallOption) (*UpdateBeerReply, error) DeleteBeer(ctx context.Context, in *DeleteBeerReq, opts ...grpc.CallOption) (*DeleteBeerReply, error) ListOrder(ctx context.Context, in *ListOrderReq, opts ...grpc.CallOption) (*ListOrderReply, error) GetOrder(ctx context.Context, in *GetOrderReq, opts ...grpc.CallOption) (*GetOrderReply, error) ListUser(ctx context.Context, in *ListUserReq, opts ...grpc.CallOption) (*ListUserReply, error) GetUser(ctx context.Context, in *GetUserReq, opts ...grpc.CallOption) (*GetUserReply, error) }
ShopAdminClient is the client API for ShopAdmin 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 NewShopAdminClient ¶
func NewShopAdminClient(cc grpc.ClientConnInterface) ShopAdminClient
type ShopAdminErrorReason ¶
type ShopAdminErrorReason int32
const (
ShopAdminErrorReason_UNKNOWN_ERROR ShopAdminErrorReason = 0
)
func (ShopAdminErrorReason) Descriptor ¶
func (ShopAdminErrorReason) Descriptor() protoreflect.EnumDescriptor
func (ShopAdminErrorReason) Enum ¶
func (x ShopAdminErrorReason) Enum() *ShopAdminErrorReason
func (ShopAdminErrorReason) EnumDescriptor
deprecated
func (ShopAdminErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use ShopAdminErrorReason.Descriptor instead.
func (ShopAdminErrorReason) Number ¶
func (x ShopAdminErrorReason) Number() protoreflect.EnumNumber
func (ShopAdminErrorReason) String ¶
func (x ShopAdminErrorReason) String() string
func (ShopAdminErrorReason) Type ¶
func (ShopAdminErrorReason) Type() protoreflect.EnumType
type ShopAdminHTTPClient ¶
type ShopAdminHTTPClient interface { CreateBeer(ctx context.Context, req *CreateBeerReq, opts ...http.CallOption) (rsp *CreateBeerReply, err error) DeleteBeer(ctx context.Context, req *DeleteBeerReq, opts ...http.CallOption) (rsp *DeleteBeerReply, err error) GetOrder(ctx context.Context, req *GetOrderReq, opts ...http.CallOption) (rsp *GetOrderReply, err error) GetUser(ctx context.Context, req *GetUserReq, opts ...http.CallOption) (rsp *GetUserReply, err error) ListBeer(ctx context.Context, req *ListBeerReq, opts ...http.CallOption) (rsp *ListBeerReply, err error) ListOrder(ctx context.Context, req *ListOrderReq, opts ...http.CallOption) (rsp *ListOrderReply, err error) ListUser(ctx context.Context, req *ListUserReq, opts ...http.CallOption) (rsp *ListUserReply, 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) UpdateBeer(ctx context.Context, req *UpdateBeerReq, opts ...http.CallOption) (rsp *UpdateBeerReply, err error) }
func NewShopAdminHTTPClient ¶
func NewShopAdminHTTPClient(client *http.Client) ShopAdminHTTPClient
type ShopAdminHTTPClientImpl ¶
type ShopAdminHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*ShopAdminHTTPClientImpl) CreateBeer ¶
func (c *ShopAdminHTTPClientImpl) CreateBeer(ctx context.Context, in *CreateBeerReq, opts ...http.CallOption) (*CreateBeerReply, error)
func (*ShopAdminHTTPClientImpl) DeleteBeer ¶
func (c *ShopAdminHTTPClientImpl) DeleteBeer(ctx context.Context, in *DeleteBeerReq, opts ...http.CallOption) (*DeleteBeerReply, error)
func (*ShopAdminHTTPClientImpl) GetOrder ¶
func (c *ShopAdminHTTPClientImpl) GetOrder(ctx context.Context, in *GetOrderReq, opts ...http.CallOption) (*GetOrderReply, error)
func (*ShopAdminHTTPClientImpl) GetUser ¶
func (c *ShopAdminHTTPClientImpl) GetUser(ctx context.Context, in *GetUserReq, opts ...http.CallOption) (*GetUserReply, error)
func (*ShopAdminHTTPClientImpl) ListBeer ¶
func (c *ShopAdminHTTPClientImpl) ListBeer(ctx context.Context, in *ListBeerReq, opts ...http.CallOption) (*ListBeerReply, error)
func (*ShopAdminHTTPClientImpl) ListOrder ¶
func (c *ShopAdminHTTPClientImpl) ListOrder(ctx context.Context, in *ListOrderReq, opts ...http.CallOption) (*ListOrderReply, error)
func (*ShopAdminHTTPClientImpl) ListUser ¶
func (c *ShopAdminHTTPClientImpl) ListUser(ctx context.Context, in *ListUserReq, opts ...http.CallOption) (*ListUserReply, error)
func (*ShopAdminHTTPClientImpl) Login ¶
func (c *ShopAdminHTTPClientImpl) Login(ctx context.Context, in *LoginReq, opts ...http.CallOption) (*LoginReply, error)
func (*ShopAdminHTTPClientImpl) Logout ¶
func (c *ShopAdminHTTPClientImpl) Logout(ctx context.Context, in *LogoutReq, opts ...http.CallOption) (*LogoutReply, error)
func (*ShopAdminHTTPClientImpl) UpdateBeer ¶
func (c *ShopAdminHTTPClientImpl) UpdateBeer(ctx context.Context, in *UpdateBeerReq, opts ...http.CallOption) (*UpdateBeerReply, error)
type ShopAdminHTTPServer ¶
type ShopAdminHTTPServer interface { CreateBeer(context.Context, *CreateBeerReq) (*CreateBeerReply, error) DeleteBeer(context.Context, *DeleteBeerReq) (*DeleteBeerReply, error) GetOrder(context.Context, *GetOrderReq) (*GetOrderReply, error) GetUser(context.Context, *GetUserReq) (*GetUserReply, error) ListBeer(context.Context, *ListBeerReq) (*ListBeerReply, error) ListOrder(context.Context, *ListOrderReq) (*ListOrderReply, error) ListUser(context.Context, *ListUserReq) (*ListUserReply, error) Login(context.Context, *LoginReq) (*LoginReply, error) Logout(context.Context, *LogoutReq) (*LogoutReply, error) UpdateBeer(context.Context, *UpdateBeerReq) (*UpdateBeerReply, error) }
type ShopAdminServer ¶
type ShopAdminServer interface { Login(context.Context, *LoginReq) (*LoginReply, error) Logout(context.Context, *LogoutReq) (*LogoutReply, error) ListBeer(context.Context, *ListBeerReq) (*ListBeerReply, error) CreateBeer(context.Context, *CreateBeerReq) (*CreateBeerReply, error) UpdateBeer(context.Context, *UpdateBeerReq) (*UpdateBeerReply, error) DeleteBeer(context.Context, *DeleteBeerReq) (*DeleteBeerReply, error) ListOrder(context.Context, *ListOrderReq) (*ListOrderReply, error) GetOrder(context.Context, *GetOrderReq) (*GetOrderReply, error) ListUser(context.Context, *ListUserReq) (*ListUserReply, error) GetUser(context.Context, *GetUserReq) (*GetUserReply, error) // contains filtered or unexported methods }
ShopAdminServer is the server API for ShopAdmin service. All implementations must embed UnimplementedShopAdminServer for forward compatibility
type UnimplementedShopAdminServer ¶
type UnimplementedShopAdminServer struct { }
UnimplementedShopAdminServer must be embedded to have forward compatible implementations.
func (UnimplementedShopAdminServer) CreateBeer ¶
func (UnimplementedShopAdminServer) CreateBeer(context.Context, *CreateBeerReq) (*CreateBeerReply, error)
func (UnimplementedShopAdminServer) DeleteBeer ¶
func (UnimplementedShopAdminServer) DeleteBeer(context.Context, *DeleteBeerReq) (*DeleteBeerReply, error)
func (UnimplementedShopAdminServer) GetOrder ¶
func (UnimplementedShopAdminServer) GetOrder(context.Context, *GetOrderReq) (*GetOrderReply, error)
func (UnimplementedShopAdminServer) GetUser ¶
func (UnimplementedShopAdminServer) GetUser(context.Context, *GetUserReq) (*GetUserReply, error)
func (UnimplementedShopAdminServer) ListBeer ¶
func (UnimplementedShopAdminServer) ListBeer(context.Context, *ListBeerReq) (*ListBeerReply, error)
func (UnimplementedShopAdminServer) ListOrder ¶
func (UnimplementedShopAdminServer) ListOrder(context.Context, *ListOrderReq) (*ListOrderReply, error)
func (UnimplementedShopAdminServer) ListUser ¶
func (UnimplementedShopAdminServer) ListUser(context.Context, *ListUserReq) (*ListUserReply, error)
func (UnimplementedShopAdminServer) Login ¶
func (UnimplementedShopAdminServer) Login(context.Context, *LoginReq) (*LoginReply, error)
func (UnimplementedShopAdminServer) Logout ¶
func (UnimplementedShopAdminServer) Logout(context.Context, *LogoutReq) (*LogoutReply, error)
func (UnimplementedShopAdminServer) UpdateBeer ¶
func (UnimplementedShopAdminServer) UpdateBeer(context.Context, *UpdateBeerReq) (*UpdateBeerReply, error)
type UnsafeShopAdminServer ¶
type UnsafeShopAdminServer interface {
// contains filtered or unexported methods
}
UnsafeShopAdminServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ShopAdminServer will result in compilation errors.
type UpdateBeerReply ¶
type UpdateBeerReply struct {
// contains filtered or unexported fields
}
func (*UpdateBeerReply) Descriptor
deprecated
func (*UpdateBeerReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBeerReply.ProtoReflect.Descriptor instead.
func (*UpdateBeerReply) ProtoMessage ¶
func (*UpdateBeerReply) ProtoMessage()
func (*UpdateBeerReply) ProtoReflect ¶
func (x *UpdateBeerReply) ProtoReflect() protoreflect.Message
func (*UpdateBeerReply) Reset ¶
func (x *UpdateBeerReply) Reset()
func (*UpdateBeerReply) String ¶
func (x *UpdateBeerReply) String() string
type UpdateBeerReq ¶
type UpdateBeerReq 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 []*UpdateBeerReq_Image `protobuf:"bytes,5,rep,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*UpdateBeerReq) Descriptor
deprecated
func (*UpdateBeerReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBeerReq.ProtoReflect.Descriptor instead.
func (*UpdateBeerReq) GetCount ¶
func (x *UpdateBeerReq) GetCount() int64
func (*UpdateBeerReq) GetDescription ¶
func (x *UpdateBeerReq) GetDescription() string
func (*UpdateBeerReq) GetId ¶
func (x *UpdateBeerReq) GetId() int64
func (*UpdateBeerReq) GetImage ¶
func (x *UpdateBeerReq) GetImage() []*UpdateBeerReq_Image
func (*UpdateBeerReq) GetName ¶
func (x *UpdateBeerReq) GetName() string
func (*UpdateBeerReq) ProtoMessage ¶
func (*UpdateBeerReq) ProtoMessage()
func (*UpdateBeerReq) ProtoReflect ¶
func (x *UpdateBeerReq) ProtoReflect() protoreflect.Message
func (*UpdateBeerReq) Reset ¶
func (x *UpdateBeerReq) Reset()
func (*UpdateBeerReq) String ¶
func (x *UpdateBeerReq) String() string
type UpdateBeerReq_Image ¶
type UpdateBeerReq_Image struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*UpdateBeerReq_Image) Descriptor
deprecated
func (*UpdateBeerReq_Image) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBeerReq_Image.ProtoReflect.Descriptor instead.
func (*UpdateBeerReq_Image) GetUrl ¶
func (x *UpdateBeerReq_Image) GetUrl() string
func (*UpdateBeerReq_Image) ProtoMessage ¶
func (*UpdateBeerReq_Image) ProtoMessage()
func (*UpdateBeerReq_Image) ProtoReflect ¶
func (x *UpdateBeerReq_Image) ProtoReflect() protoreflect.Message
func (*UpdateBeerReq_Image) Reset ¶
func (x *UpdateBeerReq_Image) Reset()
func (*UpdateBeerReq_Image) String ¶
func (x *UpdateBeerReq_Image) String() string
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