Documentation ¶
Index ¶
- Variables
- func RegisterOrderSvcServer(s *grpc.Server, srv OrderSvcServer)
- type CreateOrderReply
- type CreateOrderRequest
- func (*CreateOrderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateOrderRequest) GetCode() string
- func (x *CreateOrderRequest) GetDescription() string
- func (x *CreateOrderRequest) GetName() string
- func (*CreateOrderRequest) ProtoMessage()
- func (x *CreateOrderRequest) ProtoReflect() protoreflect.Message
- func (x *CreateOrderRequest) Reset()
- func (x *CreateOrderRequest) String() string
- type DeleteOrderReply
- type DeleteOrderRequest
- type ExistOrderReply
- type ExistOrderRequest
- type ListOrdersReply
- type ListOrdersRequest
- func (*ListOrdersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListOrdersRequest) GetFilterIds() []string
- func (*ListOrdersRequest) ProtoMessage()
- func (x *ListOrdersRequest) ProtoReflect() protoreflect.Message
- func (x *ListOrdersRequest) Reset()
- func (x *ListOrdersRequest) String() string
- type Order
- func (*Order) Descriptor() ([]byte, []int)deprecated
- func (x *Order) GetCode() string
- func (x *Order) GetDescription() string
- func (x *Order) GetId() string
- func (x *Order) GetName() string
- func (*Order) ProtoMessage()
- func (x *Order) ProtoReflect() protoreflect.Message
- func (x *Order) Reset()
- func (x *Order) String() string
- type OrderSvcClient
- type OrderSvcServer
- type ReadOrderReply
- type ReadOrderRequest
- type UnimplementedOrderSvcServer
- func (*UnimplementedOrderSvcServer) Create(context.Context, *CreateOrderRequest) (*CreateOrderReply, error)
- func (*UnimplementedOrderSvcServer) Delete(context.Context, *DeleteOrderRequest) (*DeleteOrderReply, error)
- func (*UnimplementedOrderSvcServer) Exist(context.Context, *ExistOrderRequest) (*ExistOrderReply, error)
- func (*UnimplementedOrderSvcServer) List(context.Context, *ListOrdersRequest) (*ListOrdersReply, error)
- func (*UnimplementedOrderSvcServer) Read(context.Context, *ReadOrderRequest) (*ReadOrderReply, error)
- func (*UnimplementedOrderSvcServer) Update(context.Context, *UpdateOrderRequest) (*UpdateOrderReply, error)
- type UpdateOrderReply
- type UpdateOrderRequest
- func (*UpdateOrderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateOrderRequest) GetCode() string
- func (x *UpdateOrderRequest) GetDescription() string
- func (x *UpdateOrderRequest) GetId() string
- func (x *UpdateOrderRequest) GetName() string
- func (*UpdateOrderRequest) ProtoMessage()
- func (x *UpdateOrderRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateOrderRequest) Reset()
- func (x *UpdateOrderRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var File_ordercomm_order_proto protoreflect.FileDescriptor
Functions ¶
func RegisterOrderSvcServer ¶
func RegisterOrderSvcServer(s *grpc.Server, srv OrderSvcServer)
Types ¶
type CreateOrderReply ¶
type CreateOrderReply struct { Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` // contains filtered or unexported fields }
The response message containing the id of the order
func (*CreateOrderReply) Descriptor
deprecated
func (*CreateOrderReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateOrderReply.ProtoReflect.Descriptor instead.
func (*CreateOrderReply) GetId ¶
func (x *CreateOrderReply) GetId() string
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 CreateOrderRequest ¶
type CreateOrderRequest struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` Code string `protobuf:"bytes,2,opt,name=Code,proto3" json:"Code,omitempty"` Description string `protobuf:"bytes,3,opt,name=Description,proto3" json:"Description,omitempty"` // contains filtered or unexported fields }
The request message containing the order details
func (*CreateOrderRequest) Descriptor
deprecated
func (*CreateOrderRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateOrderRequest.ProtoReflect.Descriptor instead.
func (*CreateOrderRequest) GetCode ¶
func (x *CreateOrderRequest) GetCode() string
func (*CreateOrderRequest) GetDescription ¶
func (x *CreateOrderRequest) GetDescription() string
func (*CreateOrderRequest) GetName ¶
func (x *CreateOrderRequest) GetName() string
func (*CreateOrderRequest) ProtoMessage ¶
func (*CreateOrderRequest) ProtoMessage()
func (*CreateOrderRequest) ProtoReflect ¶
func (x *CreateOrderRequest) ProtoReflect() protoreflect.Message
func (*CreateOrderRequest) Reset ¶
func (x *CreateOrderRequest) Reset()
func (*CreateOrderRequest) String ¶
func (x *CreateOrderRequest) String() string
type DeleteOrderReply ¶
type DeleteOrderReply struct { Order *Order `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"` // contains filtered or unexported fields }
The response message to the delete request
func (*DeleteOrderReply) Descriptor
deprecated
func (*DeleteOrderReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteOrderReply.ProtoReflect.Descriptor instead.
func (*DeleteOrderReply) GetOrder ¶
func (x *DeleteOrderReply) GetOrder() *Order
func (*DeleteOrderReply) ProtoMessage ¶
func (*DeleteOrderReply) ProtoMessage()
func (*DeleteOrderReply) ProtoReflect ¶
func (x *DeleteOrderReply) ProtoReflect() protoreflect.Message
func (*DeleteOrderReply) Reset ¶
func (x *DeleteOrderReply) Reset()
func (*DeleteOrderReply) String ¶
func (x *DeleteOrderReply) String() string
type DeleteOrderRequest ¶
type DeleteOrderRequest struct { Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` // contains filtered or unexported fields }
The request message for the delete request
func (*DeleteOrderRequest) Descriptor
deprecated
func (*DeleteOrderRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteOrderRequest.ProtoReflect.Descriptor instead.
func (*DeleteOrderRequest) GetId ¶
func (x *DeleteOrderRequest) GetId() string
func (*DeleteOrderRequest) ProtoMessage ¶
func (*DeleteOrderRequest) ProtoMessage()
func (*DeleteOrderRequest) ProtoReflect ¶
func (x *DeleteOrderRequest) ProtoReflect() protoreflect.Message
func (*DeleteOrderRequest) Reset ¶
func (x *DeleteOrderRequest) Reset()
func (*DeleteOrderRequest) String ¶
func (x *DeleteOrderRequest) String() string
type ExistOrderReply ¶
type ExistOrderReply struct { Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"` // contains filtered or unexported fields }
The response message to the exists request
func (*ExistOrderReply) Descriptor
deprecated
func (*ExistOrderReply) Descriptor() ([]byte, []int)
Deprecated: Use ExistOrderReply.ProtoReflect.Descriptor instead.
func (*ExistOrderReply) GetExists ¶
func (x *ExistOrderReply) GetExists() bool
func (*ExistOrderReply) ProtoMessage ¶
func (*ExistOrderReply) ProtoMessage()
func (*ExistOrderReply) ProtoReflect ¶
func (x *ExistOrderReply) ProtoReflect() protoreflect.Message
func (*ExistOrderReply) Reset ¶
func (x *ExistOrderReply) Reset()
func (*ExistOrderReply) String ¶
func (x *ExistOrderReply) String() string
type ExistOrderRequest ¶
type ExistOrderRequest struct { Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` // contains filtered or unexported fields }
The request message for the exists request
func (*ExistOrderRequest) Descriptor
deprecated
func (*ExistOrderRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExistOrderRequest.ProtoReflect.Descriptor instead.
func (*ExistOrderRequest) GetId ¶
func (x *ExistOrderRequest) GetId() string
func (*ExistOrderRequest) ProtoMessage ¶
func (*ExistOrderRequest) ProtoMessage()
func (*ExistOrderRequest) ProtoReflect ¶
func (x *ExistOrderRequest) ProtoReflect() protoreflect.Message
func (*ExistOrderRequest) Reset ¶
func (x *ExistOrderRequest) Reset()
func (*ExistOrderRequest) String ¶
func (x *ExistOrderRequest) String() string
type ListOrdersReply ¶
type ListOrdersReply struct { Orders []*Order `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"` // contains filtered or unexported fields }
The response message to the list orders request.
func (*ListOrdersReply) Descriptor
deprecated
func (*ListOrdersReply) Descriptor() ([]byte, []int)
Deprecated: Use ListOrdersReply.ProtoReflect.Descriptor instead.
func (*ListOrdersReply) GetOrders ¶
func (x *ListOrdersReply) GetOrders() []*Order
func (*ListOrdersReply) ProtoMessage ¶
func (*ListOrdersReply) ProtoMessage()
func (*ListOrdersReply) ProtoReflect ¶
func (x *ListOrdersReply) ProtoReflect() protoreflect.Message
func (*ListOrdersReply) Reset ¶
func (x *ListOrdersReply) Reset()
func (*ListOrdersReply) String ¶
func (x *ListOrdersReply) String() string
type ListOrdersRequest ¶
type ListOrdersRequest struct { FilterIds []string `protobuf:"bytes,1,rep,name=FilterIds,proto3" json:"FilterIds,omitempty"` // contains filtered or unexported fields }
The request message for the list orders request
func (*ListOrdersRequest) Descriptor
deprecated
func (*ListOrdersRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListOrdersRequest.ProtoReflect.Descriptor instead.
func (*ListOrdersRequest) GetFilterIds ¶
func (x *ListOrdersRequest) GetFilterIds() []string
func (*ListOrdersRequest) ProtoMessage ¶
func (*ListOrdersRequest) ProtoMessage()
func (*ListOrdersRequest) ProtoReflect ¶
func (x *ListOrdersRequest) ProtoReflect() protoreflect.Message
func (*ListOrdersRequest) Reset ¶
func (x *ListOrdersRequest) Reset()
func (*ListOrdersRequest) String ¶
func (x *ListOrdersRequest) String() string
type Order ¶
type Order struct { Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` Code string `protobuf:"bytes,3,opt,name=Code,proto3" json:"Code,omitempty"` Description string `protobuf:"bytes,4,opt,name=Description,proto3" json:"Description,omitempty"` // contains filtered or unexported fields }
func (*Order) Descriptor
deprecated
func (*Order) GetDescription ¶
func (*Order) ProtoMessage ¶
func (*Order) ProtoMessage()
func (*Order) ProtoReflect ¶
func (x *Order) ProtoReflect() protoreflect.Message
type OrderSvcClient ¶
type OrderSvcClient interface { // Creates a new order Create(ctx context.Context, in *CreateOrderRequest, opts ...grpc.CallOption) (*CreateOrderReply, error) // Reads an order Read(ctx context.Context, in *ReadOrderRequest, opts ...grpc.CallOption) (*ReadOrderReply, error) // Exists an order Exist(ctx context.Context, in *ExistOrderRequest, opts ...grpc.CallOption) (*ExistOrderReply, error) // Delete an order Delete(ctx context.Context, in *DeleteOrderRequest, opts ...grpc.CallOption) (*DeleteOrderReply, error) // Update an order Update(ctx context.Context, in *UpdateOrderRequest, opts ...grpc.CallOption) (*UpdateOrderReply, error) // List an order List(ctx context.Context, in *ListOrdersRequest, opts ...grpc.CallOption) (*ListOrdersReply, error) }
OrderSvcClient is the client API for OrderSvc service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewOrderSvcClient ¶
func NewOrderSvcClient(cc grpc.ClientConnInterface) OrderSvcClient
type OrderSvcServer ¶
type OrderSvcServer interface { // Creates a new order Create(context.Context, *CreateOrderRequest) (*CreateOrderReply, error) // Reads an order Read(context.Context, *ReadOrderRequest) (*ReadOrderReply, error) // Exists an order Exist(context.Context, *ExistOrderRequest) (*ExistOrderReply, error) // Delete an order Delete(context.Context, *DeleteOrderRequest) (*DeleteOrderReply, error) // Update an order Update(context.Context, *UpdateOrderRequest) (*UpdateOrderReply, error) // List an order List(context.Context, *ListOrdersRequest) (*ListOrdersReply, error) }
OrderSvcServer is the server API for OrderSvc service.
type ReadOrderReply ¶
type ReadOrderReply struct { Order *Order `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"` // contains filtered or unexported fields }
The response message to the read request
func (*ReadOrderReply) Descriptor
deprecated
func (*ReadOrderReply) Descriptor() ([]byte, []int)
Deprecated: Use ReadOrderReply.ProtoReflect.Descriptor instead.
func (*ReadOrderReply) GetOrder ¶
func (x *ReadOrderReply) GetOrder() *Order
func (*ReadOrderReply) ProtoMessage ¶
func (*ReadOrderReply) ProtoMessage()
func (*ReadOrderReply) ProtoReflect ¶
func (x *ReadOrderReply) ProtoReflect() protoreflect.Message
func (*ReadOrderReply) Reset ¶
func (x *ReadOrderReply) Reset()
func (*ReadOrderReply) String ¶
func (x *ReadOrderReply) String() string
type ReadOrderRequest ¶
type ReadOrderRequest struct { Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` // contains filtered or unexported fields }
The request message for the read request
func (*ReadOrderRequest) Descriptor
deprecated
func (*ReadOrderRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadOrderRequest.ProtoReflect.Descriptor instead.
func (*ReadOrderRequest) GetId ¶
func (x *ReadOrderRequest) GetId() string
func (*ReadOrderRequest) ProtoMessage ¶
func (*ReadOrderRequest) ProtoMessage()
func (*ReadOrderRequest) ProtoReflect ¶
func (x *ReadOrderRequest) ProtoReflect() protoreflect.Message
func (*ReadOrderRequest) Reset ¶
func (x *ReadOrderRequest) Reset()
func (*ReadOrderRequest) String ¶
func (x *ReadOrderRequest) String() string
type UnimplementedOrderSvcServer ¶
type UnimplementedOrderSvcServer struct { }
UnimplementedOrderSvcServer can be embedded to have forward compatible implementations.
func (*UnimplementedOrderSvcServer) Create ¶
func (*UnimplementedOrderSvcServer) Create(context.Context, *CreateOrderRequest) (*CreateOrderReply, error)
func (*UnimplementedOrderSvcServer) Delete ¶
func (*UnimplementedOrderSvcServer) Delete(context.Context, *DeleteOrderRequest) (*DeleteOrderReply, error)
func (*UnimplementedOrderSvcServer) Exist ¶
func (*UnimplementedOrderSvcServer) Exist(context.Context, *ExistOrderRequest) (*ExistOrderReply, error)
func (*UnimplementedOrderSvcServer) List ¶
func (*UnimplementedOrderSvcServer) List(context.Context, *ListOrdersRequest) (*ListOrdersReply, error)
func (*UnimplementedOrderSvcServer) Read ¶
func (*UnimplementedOrderSvcServer) Read(context.Context, *ReadOrderRequest) (*ReadOrderReply, error)
func (*UnimplementedOrderSvcServer) Update ¶
func (*UnimplementedOrderSvcServer) Update(context.Context, *UpdateOrderRequest) (*UpdateOrderReply, error)
type UpdateOrderReply ¶
type UpdateOrderReply struct { Order *Order `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"` // contains filtered or unexported fields }
The response message to the update request. Returns the old values for the Order
func (*UpdateOrderReply) Descriptor
deprecated
func (*UpdateOrderReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateOrderReply.ProtoReflect.Descriptor instead.
func (*UpdateOrderReply) GetOrder ¶
func (x *UpdateOrderReply) GetOrder() *Order
func (*UpdateOrderReply) ProtoMessage ¶
func (*UpdateOrderReply) ProtoMessage()
func (*UpdateOrderReply) ProtoReflect ¶
func (x *UpdateOrderReply) ProtoReflect() protoreflect.Message
func (*UpdateOrderReply) Reset ¶
func (x *UpdateOrderReply) Reset()
func (*UpdateOrderReply) String ¶
func (x *UpdateOrderReply) String() string
type UpdateOrderRequest ¶
type UpdateOrderRequest struct { Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` Code string `protobuf:"bytes,3,opt,name=Code,proto3" json:"Code,omitempty"` Description string `protobuf:"bytes,4,opt,name=Description,proto3" json:"Description,omitempty"` // contains filtered or unexported fields }
The request message for the update request
func (*UpdateOrderRequest) Descriptor
deprecated
func (*UpdateOrderRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateOrderRequest.ProtoReflect.Descriptor instead.
func (*UpdateOrderRequest) GetCode ¶
func (x *UpdateOrderRequest) GetCode() string
func (*UpdateOrderRequest) GetDescription ¶
func (x *UpdateOrderRequest) GetDescription() string
func (*UpdateOrderRequest) GetId ¶
func (x *UpdateOrderRequest) GetId() string
func (*UpdateOrderRequest) GetName ¶
func (x *UpdateOrderRequest) GetName() string
func (*UpdateOrderRequest) ProtoMessage ¶
func (*UpdateOrderRequest) ProtoMessage()
func (*UpdateOrderRequest) ProtoReflect ¶
func (x *UpdateOrderRequest) ProtoReflect() protoreflect.Message
func (*UpdateOrderRequest) Reset ¶
func (x *UpdateOrderRequest) Reset()
func (*UpdateOrderRequest) String ¶
func (x *UpdateOrderRequest) String() string