Documentation ¶
Index ¶
- Variables
- func RegisterCartServiceServer(s grpc_go.ServiceRegistrar, srv CartServiceServer)
- type CartServiceClient
- type CartServiceClientImpl
- type CartServiceServer
- type GetCustomerCartRequest
- func (*GetCustomerCartRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCustomerCartRequest) GetCustomerId() int64
- func (*GetCustomerCartRequest) ProtoMessage()
- func (x *GetCustomerCartRequest) ProtoReflect() protoreflect.Message
- func (x *GetCustomerCartRequest) Reset()
- func (x *GetCustomerCartRequest) String() string
- type GetCustomerCartResponse
- func (*GetCustomerCartResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCustomerCartResponse) GetCustomerId() int64
- func (x *GetCustomerCartResponse) GetList() []*GoodsItem
- func (*GetCustomerCartResponse) ProtoMessage()
- func (x *GetCustomerCartResponse) ProtoReflect() protoreflect.Message
- func (x *GetCustomerCartResponse) Reset()
- func (x *GetCustomerCartResponse) String() string
- type GoodsItem
- type UnimplementedCartServiceServer
- func (UnimplementedCartServiceServer) GetCustomerCart(context.Context, *GetCustomerCartRequest) (*GetCustomerCartResponse, error)
- func (s *UnimplementedCartServiceServer) XXX_GetProxyImpl() protocol.Invoker
- func (s *UnimplementedCartServiceServer) XXX_InterfaceName() string
- func (s *UnimplementedCartServiceServer) XXX_ServiceDesc() *grpc_go.ServiceDesc
- func (s *UnimplementedCartServiceServer) XXX_SetProxyImpl(impl protocol.Invoker)
- type UnsafeCartServiceServer
Constants ¶
This section is empty.
Variables ¶
var CartService_ServiceDesc = grpc_go.ServiceDesc{ ServiceName: "com.jeongen.fastmall.cart.CartService", HandlerType: (*CartServiceServer)(nil), Methods: []grpc_go.MethodDesc{ { MethodName: "GetCustomerCart", Handler: _CartService_GetCustomerCart_Handler, }, }, Streams: []grpc_go.StreamDesc{}, Metadata: "cart.proto", }
CartService_ServiceDesc is the grpc_go.ServiceDesc for CartService service. It's only intended for direct use with grpc_go.RegisterService, and not to be introspected or modified (even as a copy)
var File_cart_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCartServiceServer ¶
func RegisterCartServiceServer(s grpc_go.ServiceRegistrar, srv CartServiceServer)
Types ¶
type CartServiceClient ¶
type CartServiceClient interface {
GetCustomerCart(ctx context.Context, in *GetCustomerCartRequest, opts ...grpc_go.CallOption) (*GetCustomerCartResponse, common.ErrorWithAttachment)
}
CartServiceClient is the client API for CartService 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 NewCartServiceClient ¶
func NewCartServiceClient(cc *triple.TripleConn) CartServiceClient
type CartServiceClientImpl ¶
type CartServiceClientImpl struct {
GetCustomerCart func(ctx context.Context, in *GetCustomerCartRequest) (*GetCustomerCartResponse, error)
}
func (*CartServiceClientImpl) GetDubboStub ¶
func (c *CartServiceClientImpl) GetDubboStub(cc *triple.TripleConn) CartServiceClient
func (*CartServiceClientImpl) XXX_InterfaceName ¶
func (c *CartServiceClientImpl) XXX_InterfaceName() string
type CartServiceServer ¶
type CartServiceServer interface { GetCustomerCart(context.Context, *GetCustomerCartRequest) (*GetCustomerCartResponse, error) // contains filtered or unexported methods }
CartServiceServer is the server API for CartService service. All implementations must embed UnimplementedCartServiceServer for forward compatibility
type GetCustomerCartRequest ¶
type GetCustomerCartRequest struct { CustomerId int64 `protobuf:"varint,1,opt,name=customerId,proto3" json:"customerId,omitempty"` // contains filtered or unexported fields }
func (*GetCustomerCartRequest) Descriptor
deprecated
func (*GetCustomerCartRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCustomerCartRequest.ProtoReflect.Descriptor instead.
func (*GetCustomerCartRequest) GetCustomerId ¶
func (x *GetCustomerCartRequest) GetCustomerId() int64
func (*GetCustomerCartRequest) ProtoMessage ¶
func (*GetCustomerCartRequest) ProtoMessage()
func (*GetCustomerCartRequest) ProtoReflect ¶
func (x *GetCustomerCartRequest) ProtoReflect() protoreflect.Message
func (*GetCustomerCartRequest) Reset ¶
func (x *GetCustomerCartRequest) Reset()
func (*GetCustomerCartRequest) String ¶
func (x *GetCustomerCartRequest) String() string
type GetCustomerCartResponse ¶
type GetCustomerCartResponse struct { CustomerId int64 `protobuf:"varint,1,opt,name=customerId,proto3" json:"customerId,omitempty"` List []*GoodsItem `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*GetCustomerCartResponse) Descriptor
deprecated
func (*GetCustomerCartResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCustomerCartResponse.ProtoReflect.Descriptor instead.
func (*GetCustomerCartResponse) GetCustomerId ¶
func (x *GetCustomerCartResponse) GetCustomerId() int64
func (*GetCustomerCartResponse) GetList ¶
func (x *GetCustomerCartResponse) GetList() []*GoodsItem
func (*GetCustomerCartResponse) ProtoMessage ¶
func (*GetCustomerCartResponse) ProtoMessage()
func (*GetCustomerCartResponse) ProtoReflect ¶
func (x *GetCustomerCartResponse) ProtoReflect() protoreflect.Message
func (*GetCustomerCartResponse) Reset ¶
func (x *GetCustomerCartResponse) Reset()
func (*GetCustomerCartResponse) String ¶
func (x *GetCustomerCartResponse) String() string
type GoodsItem ¶
type GoodsItem struct { ItemId int64 `protobuf:"varint,1,opt,name=itemId,proto3" json:"itemId,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` // contains filtered or unexported fields }
func (*GoodsItem) Descriptor
deprecated
func (*GoodsItem) ProtoMessage ¶
func (*GoodsItem) ProtoMessage()
func (*GoodsItem) ProtoReflect ¶
func (x *GoodsItem) ProtoReflect() protoreflect.Message
type UnimplementedCartServiceServer ¶
type UnimplementedCartServiceServer struct {
// contains filtered or unexported fields
}
UnimplementedCartServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedCartServiceServer) GetCustomerCart ¶
func (UnimplementedCartServiceServer) GetCustomerCart(context.Context, *GetCustomerCartRequest) (*GetCustomerCartResponse, error)
func (*UnimplementedCartServiceServer) XXX_GetProxyImpl ¶
func (s *UnimplementedCartServiceServer) XXX_GetProxyImpl() protocol.Invoker
func (*UnimplementedCartServiceServer) XXX_InterfaceName ¶
func (s *UnimplementedCartServiceServer) XXX_InterfaceName() string
func (*UnimplementedCartServiceServer) XXX_ServiceDesc ¶
func (s *UnimplementedCartServiceServer) XXX_ServiceDesc() *grpc_go.ServiceDesc
func (*UnimplementedCartServiceServer) XXX_SetProxyImpl ¶
func (s *UnimplementedCartServiceServer) XXX_SetProxyImpl(impl protocol.Invoker)
type UnsafeCartServiceServer ¶
type UnsafeCartServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCartServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CartServiceServer will result in compilation errors.