api

package module
v0.0.0-...-1f660a6 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: GPL-3.0 Imports: 16 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

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

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 (*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) Descriptor() ([]byte, []int)

Deprecated: Use GoodsItem.ProtoReflect.Descriptor instead.

func (*GoodsItem) GetItemId

func (x *GoodsItem) GetItemId() int64

func (*GoodsItem) GetTitle

func (x *GoodsItem) GetTitle() string

func (*GoodsItem) ProtoMessage

func (*GoodsItem) ProtoMessage()

func (*GoodsItem) ProtoReflect

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

func (*GoodsItem) Reset

func (x *GoodsItem) Reset()

func (*GoodsItem) String

func (x *GoodsItem) String() string

type UnimplementedCartServiceServer

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

UnimplementedCartServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedCartServiceServer) GetCustomerCart

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.

Jump to

Keyboard shortcuts

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