order1

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OrderService_CreateOrder_FullMethodName     = "/OrderService/CreateOrder"
	OrderService_GetInfoOrder_FullMethodName    = "/OrderService/GetInfoOrder"
	OrderService_GetAllInfoOrder_FullMethodName = "/OrderService/GetAllInfoOrder"
	OrderService_DeleteOrder_FullMethodName     = "/OrderService/DeleteOrder"
)

Variables

View Source
var File_order_order_proto protoreflect.FileDescriptor
View Source
var OrderService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "OrderService",
	HandlerType: (*OrderServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetInfoOrder",
			Handler:    _OrderService_GetInfoOrder_Handler,
		},
		{
			MethodName: "GetAllInfoOrder",
			Handler:    _OrderService_GetAllInfoOrder_Handler,
		},
		{
			MethodName: "DeleteOrder",
			Handler:    _OrderService_DeleteOrder_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "CreateOrder",
			Handler:       _OrderService_CreateOrder_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "order/order.proto",
}

OrderService_ServiceDesc is the grpc.ServiceDesc for OrderService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterOrderServiceServer

func RegisterOrderServiceServer(s grpc.ServiceRegistrar, srv OrderServiceServer)

Types

type CreatOrderReq

type CreatOrderReq struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreatOrderReq) Descriptor deprecated

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

Deprecated: Use CreatOrderReq.ProtoReflect.Descriptor instead.

func (*CreatOrderReq) GetUserId

func (x *CreatOrderReq) GetUserId() string

func (*CreatOrderReq) ProtoMessage

func (*CreatOrderReq) ProtoMessage()

func (*CreatOrderReq) ProtoReflect

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

func (*CreatOrderReq) Reset

func (x *CreatOrderReq) Reset()

func (*CreatOrderReq) String

func (x *CreatOrderReq) String() string

type CreateOrderRes

type CreateOrderRes struct {
	OrderId   string    `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	UserId    string    `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	UserName  string    `protobuf:"bytes,3,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	Product   *Product1 `protobuf:"bytes,4,opt,name=product,proto3" json:"product,omitempty"`
	CreatedAt string    `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateOrderRes) Descriptor deprecated

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

Deprecated: Use CreateOrderRes.ProtoReflect.Descriptor instead.

func (*CreateOrderRes) GetCreatedAt

func (x *CreateOrderRes) GetCreatedAt() string

func (*CreateOrderRes) GetOrderId

func (x *CreateOrderRes) GetOrderId() string

func (*CreateOrderRes) GetProduct

func (x *CreateOrderRes) GetProduct() *Product1

func (*CreateOrderRes) GetUserId

func (x *CreateOrderRes) GetUserId() string

func (*CreateOrderRes) GetUserName

func (x *CreateOrderRes) GetUserName() string

func (*CreateOrderRes) ProtoMessage

func (*CreateOrderRes) ProtoMessage()

func (*CreateOrderRes) ProtoReflect

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

func (*CreateOrderRes) Reset

func (x *CreateOrderRes) Reset()

func (*CreateOrderRes) String

func (x *CreateOrderRes) String() string

type DeleteOrderReq

type DeleteOrderReq struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteOrderReq) Descriptor deprecated

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

Deprecated: Use DeleteOrderReq.ProtoReflect.Descriptor instead.

func (*DeleteOrderReq) GetUserId

func (x *DeleteOrderReq) GetUserId() string

func (*DeleteOrderReq) ProtoMessage

func (*DeleteOrderReq) ProtoMessage()

func (*DeleteOrderReq) ProtoReflect

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

func (*DeleteOrderReq) Reset

func (x *DeleteOrderReq) Reset()

func (*DeleteOrderReq) String

func (x *DeleteOrderReq) String() string

type Empty1 added in v1.1.3

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

func (*Empty1) Descriptor deprecated added in v1.1.3

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

Deprecated: Use Empty1.ProtoReflect.Descriptor instead.

func (*Empty1) GetStatus added in v1.1.3

func (x *Empty1) GetStatus() string

func (*Empty1) ProtoMessage added in v1.1.3

func (*Empty1) ProtoMessage()

func (*Empty1) ProtoReflect added in v1.1.3

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

func (*Empty1) Reset added in v1.1.3

func (x *Empty1) Reset()

func (*Empty1) String added in v1.1.3

func (x *Empty1) String() string

type GetAllInfoOrderReq

type GetAllInfoOrderReq struct {
	Field string `protobuf:"bytes,1,opt,name=Field,proto3" json:"Field,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"`
	Limit int64  `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
	Page  int64  `protobuf:"varint,4,opt,name=page,proto3" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAllInfoOrderReq) Descriptor deprecated

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

Deprecated: Use GetAllInfoOrderReq.ProtoReflect.Descriptor instead.

func (*GetAllInfoOrderReq) GetField

func (x *GetAllInfoOrderReq) GetField() string

func (*GetAllInfoOrderReq) GetLimit

func (x *GetAllInfoOrderReq) GetLimit() int64

func (*GetAllInfoOrderReq) GetPage

func (x *GetAllInfoOrderReq) GetPage() int64

func (*GetAllInfoOrderReq) GetValue

func (x *GetAllInfoOrderReq) GetValue() string

func (*GetAllInfoOrderReq) ProtoMessage

func (*GetAllInfoOrderReq) ProtoMessage()

func (*GetAllInfoOrderReq) ProtoReflect

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

func (*GetAllInfoOrderReq) Reset

func (x *GetAllInfoOrderReq) Reset()

func (*GetAllInfoOrderReq) String

func (x *GetAllInfoOrderReq) String() string

type GetAllInfoOrderRes

type GetAllInfoOrderRes struct {
	Orders []*Order `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAllInfoOrderRes) Descriptor deprecated

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

Deprecated: Use GetAllInfoOrderRes.ProtoReflect.Descriptor instead.

func (*GetAllInfoOrderRes) GetOrders

func (x *GetAllInfoOrderRes) GetOrders() []*Order

func (*GetAllInfoOrderRes) ProtoMessage

func (*GetAllInfoOrderRes) ProtoMessage()

func (*GetAllInfoOrderRes) ProtoReflect

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

func (*GetAllInfoOrderRes) Reset

func (x *GetAllInfoOrderRes) Reset()

func (*GetAllInfoOrderRes) String

func (x *GetAllInfoOrderRes) String() string

type GetInfoOrderReq

type GetInfoOrderReq struct {
	OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetInfoOrderReq) Descriptor deprecated

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

Deprecated: Use GetInfoOrderReq.ProtoReflect.Descriptor instead.

func (*GetInfoOrderReq) GetOrderId

func (x *GetInfoOrderReq) GetOrderId() string

func (*GetInfoOrderReq) ProtoMessage

func (*GetInfoOrderReq) ProtoMessage()

func (*GetInfoOrderReq) ProtoReflect

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

func (*GetInfoOrderReq) Reset

func (x *GetInfoOrderReq) Reset()

func (*GetInfoOrderReq) String

func (x *GetInfoOrderReq) String() string

type Order

type Order struct {
	OrderId     string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	UserId      string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	ProductId   string `protobuf:"bytes,6,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
	UserName    string `protobuf:"bytes,3,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	ProductName string `protobuf:"bytes,4,opt,name=product_name,json=productName,proto3" json:"product_name,omitempty"`
	CreatedAt   string `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Order) Descriptor deprecated

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

Deprecated: Use Order.ProtoReflect.Descriptor instead.

func (*Order) GetCreatedAt

func (x *Order) GetCreatedAt() string

func (*Order) GetOrderId

func (x *Order) GetOrderId() string

func (*Order) GetProductId

func (x *Order) GetProductId() string

func (*Order) GetProductName

func (x *Order) GetProductName() string

func (*Order) GetUserId

func (x *Order) GetUserId() string

func (*Order) GetUserName

func (x *Order) GetUserName() string

func (*Order) ProtoMessage

func (*Order) ProtoMessage()

func (*Order) ProtoReflect

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

func (*Order) Reset

func (x *Order) Reset()

func (*Order) String

func (x *Order) String() string

type OrderServiceClient

type OrderServiceClient interface {
	CreateOrder(ctx context.Context, in *CreatOrderReq, opts ...grpc.CallOption) (OrderService_CreateOrderClient, error)
	GetInfoOrder(ctx context.Context, in *GetInfoOrderReq, opts ...grpc.CallOption) (*Order, error)
	GetAllInfoOrder(ctx context.Context, in *GetAllInfoOrderReq, opts ...grpc.CallOption) (*GetAllInfoOrderRes, error)
	DeleteOrder(ctx context.Context, in *DeleteOrderReq, opts ...grpc.CallOption) (*Empty1, error)
}

OrderServiceClient is the client API for OrderService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type OrderServiceServer

type OrderServiceServer interface {
	CreateOrder(*CreatOrderReq, OrderService_CreateOrderServer) error
	GetInfoOrder(context.Context, *GetInfoOrderReq) (*Order, error)
	GetAllInfoOrder(context.Context, *GetAllInfoOrderReq) (*GetAllInfoOrderRes, error)
	DeleteOrder(context.Context, *DeleteOrderReq) (*Empty1, error)
	// contains filtered or unexported methods
}

OrderServiceServer is the server API for OrderService service. All implementations must embed UnimplementedOrderServiceServer for forward compatibility

type OrderService_CreateOrderClient

type OrderService_CreateOrderClient interface {
	Recv() (*CreateOrderRes, error)
	grpc.ClientStream
}

type OrderService_CreateOrderServer

type OrderService_CreateOrderServer interface {
	Send(*CreateOrderRes) error
	grpc.ServerStream
}

type Product1 added in v1.1.2

type Product1 struct {
	ProductId          string `protobuf:"bytes,6,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
	ProductName        string `protobuf:"bytes,1,opt,name=product_name,json=productName,proto3" json:"product_name,omitempty"`
	ProductDescription string `protobuf:"bytes,2,opt,name=product_description,json=productDescription,proto3" json:"product_description,omitempty"`
	Price              string `protobuf:"bytes,3,opt,name=price,proto3" json:"price,omitempty"`
	Category           string `protobuf:"bytes,4,opt,name=category,proto3" json:"category,omitempty"`
	// contains filtered or unexported fields
}

func (*Product1) Descriptor deprecated added in v1.1.2

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

Deprecated: Use Product1.ProtoReflect.Descriptor instead.

func (*Product1) GetCategory added in v1.1.2

func (x *Product1) GetCategory() string

func (*Product1) GetPrice added in v1.1.2

func (x *Product1) GetPrice() string

func (*Product1) GetProductDescription added in v1.1.2

func (x *Product1) GetProductDescription() string

func (*Product1) GetProductId added in v1.1.2

func (x *Product1) GetProductId() string

func (*Product1) GetProductName added in v1.1.2

func (x *Product1) GetProductName() string

func (*Product1) ProtoMessage added in v1.1.2

func (*Product1) ProtoMessage()

func (*Product1) ProtoReflect added in v1.1.2

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

func (*Product1) Reset added in v1.1.2

func (x *Product1) Reset()

func (*Product1) String added in v1.1.2

func (x *Product1) String() string

type UnimplementedOrderServiceServer

type UnimplementedOrderServiceServer struct {
}

UnimplementedOrderServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedOrderServiceServer) CreateOrder

func (UnimplementedOrderServiceServer) DeleteOrder

func (UnimplementedOrderServiceServer) GetAllInfoOrder

func (UnimplementedOrderServiceServer) GetInfoOrder

type UnsafeOrderServiceServer

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

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

Jump to

Keyboard shortcuts

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