Documentation ¶
Index ¶
- Variables
- func RegisterGoodsServiceServer(s grpc_go.ServiceRegistrar, srv GoodsServiceServer)
- type CreateItemRequest
- func (*CreateItemRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateItemRequest) GetPassword() string
- func (x *CreateItemRequest) GetUsername() string
- func (*CreateItemRequest) ProtoMessage()
- func (x *CreateItemRequest) ProtoReflect() protoreflect.Message
- func (x *CreateItemRequest) Reset()
- func (x *CreateItemRequest) String() string
- type CreateItemResponse
- func (*CreateItemResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateItemResponse) GetCustomerId() int64
- func (x *CreateItemResponse) GetToken() string
- func (*CreateItemResponse) ProtoMessage()
- func (x *CreateItemResponse) ProtoReflect() protoreflect.Message
- func (x *CreateItemResponse) Reset()
- func (x *CreateItemResponse) String() string
- type GetItemDetailRequest
- func (*GetItemDetailRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetItemDetailRequest) GetItemId() int64
- func (*GetItemDetailRequest) ProtoMessage()
- func (x *GetItemDetailRequest) ProtoReflect() protoreflect.Message
- func (x *GetItemDetailRequest) Reset()
- func (x *GetItemDetailRequest) String() string
- type GetItemDetailResponse
- func (*GetItemDetailResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetItemDetailResponse) GetDesc() string
- func (x *GetItemDetailResponse) GetItemId() int64
- func (x *GetItemDetailResponse) GetTitle() string
- func (*GetItemDetailResponse) ProtoMessage()
- func (x *GetItemDetailResponse) ProtoReflect() protoreflect.Message
- func (x *GetItemDetailResponse) Reset()
- func (x *GetItemDetailResponse) String() string
- type GoodsServiceClient
- type GoodsServiceClientImpl
- type GoodsServiceServer
- type UnimplementedGoodsServiceServer
- func (UnimplementedGoodsServiceServer) CreateItem(context.Context, *CreateItemRequest) (*CreateItemResponse, error)
- func (UnimplementedGoodsServiceServer) GetItemDetail(context.Context, *GetItemDetailRequest) (*GetItemDetailResponse, error)
- func (s *UnimplementedGoodsServiceServer) XXX_GetProxyImpl() protocol.Invoker
- func (s *UnimplementedGoodsServiceServer) XXX_InterfaceName() string
- func (s *UnimplementedGoodsServiceServer) XXX_ServiceDesc() *grpc_go.ServiceDesc
- func (s *UnimplementedGoodsServiceServer) XXX_SetProxyImpl(impl protocol.Invoker)
- type UnsafeGoodsServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_goods_proto protoreflect.FileDescriptor
var GoodsService_ServiceDesc = grpc_go.ServiceDesc{ ServiceName: "com.jeongen.fastmall.goods.GoodsService", HandlerType: (*GoodsServiceServer)(nil), Methods: []grpc_go.MethodDesc{ { MethodName: "CreateItem", Handler: _GoodsService_CreateItem_Handler, }, { MethodName: "GetItemDetail", Handler: _GoodsService_GetItemDetail_Handler, }, }, Streams: []grpc_go.StreamDesc{}, Metadata: "goods.proto", }
GoodsService_ServiceDesc is the grpc_go.ServiceDesc for GoodsService 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 RegisterGoodsServiceServer ¶
func RegisterGoodsServiceServer(s grpc_go.ServiceRegistrar, srv GoodsServiceServer)
Types ¶
type CreateItemRequest ¶
type CreateItemRequest 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 (*CreateItemRequest) Descriptor
deprecated
func (*CreateItemRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateItemRequest.ProtoReflect.Descriptor instead.
func (*CreateItemRequest) GetPassword ¶
func (x *CreateItemRequest) GetPassword() string
func (*CreateItemRequest) GetUsername ¶
func (x *CreateItemRequest) GetUsername() string
func (*CreateItemRequest) ProtoMessage ¶
func (*CreateItemRequest) ProtoMessage()
func (*CreateItemRequest) ProtoReflect ¶
func (x *CreateItemRequest) ProtoReflect() protoreflect.Message
func (*CreateItemRequest) Reset ¶
func (x *CreateItemRequest) Reset()
func (*CreateItemRequest) String ¶
func (x *CreateItemRequest) String() string
type CreateItemResponse ¶
type CreateItemResponse struct { CustomerId int64 `protobuf:"varint,1,opt,name=customerId,proto3" json:"customerId,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*CreateItemResponse) Descriptor
deprecated
func (*CreateItemResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateItemResponse.ProtoReflect.Descriptor instead.
func (*CreateItemResponse) GetCustomerId ¶
func (x *CreateItemResponse) GetCustomerId() int64
func (*CreateItemResponse) GetToken ¶
func (x *CreateItemResponse) GetToken() string
func (*CreateItemResponse) ProtoMessage ¶
func (*CreateItemResponse) ProtoMessage()
func (*CreateItemResponse) ProtoReflect ¶
func (x *CreateItemResponse) ProtoReflect() protoreflect.Message
func (*CreateItemResponse) Reset ¶
func (x *CreateItemResponse) Reset()
func (*CreateItemResponse) String ¶
func (x *CreateItemResponse) String() string
type GetItemDetailRequest ¶
type GetItemDetailRequest struct { ItemId int64 `protobuf:"varint,1,opt,name=itemId,proto3" json:"itemId,omitempty"` // contains filtered or unexported fields }
func (*GetItemDetailRequest) Descriptor
deprecated
func (*GetItemDetailRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetItemDetailRequest.ProtoReflect.Descriptor instead.
func (*GetItemDetailRequest) GetItemId ¶
func (x *GetItemDetailRequest) GetItemId() int64
func (*GetItemDetailRequest) ProtoMessage ¶
func (*GetItemDetailRequest) ProtoMessage()
func (*GetItemDetailRequest) ProtoReflect ¶
func (x *GetItemDetailRequest) ProtoReflect() protoreflect.Message
func (*GetItemDetailRequest) Reset ¶
func (x *GetItemDetailRequest) Reset()
func (*GetItemDetailRequest) String ¶
func (x *GetItemDetailRequest) String() string
type GetItemDetailResponse ¶
type GetItemDetailResponse 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"` Desc string `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"` // contains filtered or unexported fields }
func (*GetItemDetailResponse) Descriptor
deprecated
func (*GetItemDetailResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetItemDetailResponse.ProtoReflect.Descriptor instead.
func (*GetItemDetailResponse) GetDesc ¶
func (x *GetItemDetailResponse) GetDesc() string
func (*GetItemDetailResponse) GetItemId ¶
func (x *GetItemDetailResponse) GetItemId() int64
func (*GetItemDetailResponse) GetTitle ¶
func (x *GetItemDetailResponse) GetTitle() string
func (*GetItemDetailResponse) ProtoMessage ¶
func (*GetItemDetailResponse) ProtoMessage()
func (*GetItemDetailResponse) ProtoReflect ¶
func (x *GetItemDetailResponse) ProtoReflect() protoreflect.Message
func (*GetItemDetailResponse) Reset ¶
func (x *GetItemDetailResponse) Reset()
func (*GetItemDetailResponse) String ¶
func (x *GetItemDetailResponse) String() string
type GoodsServiceClient ¶
type GoodsServiceClient interface { CreateItem(ctx context.Context, in *CreateItemRequest, opts ...grpc_go.CallOption) (*CreateItemResponse, common.ErrorWithAttachment) GetItemDetail(ctx context.Context, in *GetItemDetailRequest, opts ...grpc_go.CallOption) (*GetItemDetailResponse, common.ErrorWithAttachment) }
GoodsServiceClient is the client API for GoodsService 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 NewGoodsServiceClient ¶
func NewGoodsServiceClient(cc *triple.TripleConn) GoodsServiceClient
type GoodsServiceClientImpl ¶
type GoodsServiceClientImpl struct { CreateItem func(ctx context.Context, in *CreateItemRequest) (*CreateItemResponse, error) GetItemDetail func(ctx context.Context, in *GetItemDetailRequest) (*GetItemDetailResponse, error) }
func (*GoodsServiceClientImpl) GetDubboStub ¶
func (c *GoodsServiceClientImpl) GetDubboStub(cc *triple.TripleConn) GoodsServiceClient
func (*GoodsServiceClientImpl) XXX_InterfaceName ¶
func (c *GoodsServiceClientImpl) XXX_InterfaceName() string
type GoodsServiceServer ¶
type GoodsServiceServer interface { CreateItem(context.Context, *CreateItemRequest) (*CreateItemResponse, error) GetItemDetail(context.Context, *GetItemDetailRequest) (*GetItemDetailResponse, error) // contains filtered or unexported methods }
GoodsServiceServer is the server API for GoodsService service. All implementations must embed UnimplementedGoodsServiceServer for forward compatibility
type UnimplementedGoodsServiceServer ¶
type UnimplementedGoodsServiceServer struct {
// contains filtered or unexported fields
}
UnimplementedGoodsServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedGoodsServiceServer) CreateItem ¶
func (UnimplementedGoodsServiceServer) CreateItem(context.Context, *CreateItemRequest) (*CreateItemResponse, error)
func (UnimplementedGoodsServiceServer) GetItemDetail ¶
func (UnimplementedGoodsServiceServer) GetItemDetail(context.Context, *GetItemDetailRequest) (*GetItemDetailResponse, error)
func (*UnimplementedGoodsServiceServer) XXX_GetProxyImpl ¶
func (s *UnimplementedGoodsServiceServer) XXX_GetProxyImpl() protocol.Invoker
func (*UnimplementedGoodsServiceServer) XXX_InterfaceName ¶
func (s *UnimplementedGoodsServiceServer) XXX_InterfaceName() string
func (*UnimplementedGoodsServiceServer) XXX_ServiceDesc ¶
func (s *UnimplementedGoodsServiceServer) XXX_ServiceDesc() *grpc_go.ServiceDesc
func (*UnimplementedGoodsServiceServer) XXX_SetProxyImpl ¶
func (s *UnimplementedGoodsServiceServer) XXX_SetProxyImpl(impl protocol.Invoker)
type UnsafeGoodsServiceServer ¶
type UnsafeGoodsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeGoodsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GoodsServiceServer will result in compilation errors.